Git Help
This document was created to document the differences and transition from SVN to Git.
For more information check the Git user manual.
How to check out a fresh copy of the repository
git clone git://rtmpy.org/rtmpy.git
How to find local changes
git status
How to commit changes
Run:
git commit
and git will prompt you for a commit message and then stage the new commit. Check to make sure it looks like what you expected with:
git show
To do a final commit, like svn commit, run:
git commit -a
This will prompt you for a commit message. Type :wq to execute the commit.
You can also use the -m option to commit in one go:
git commit -a -m "My commit message"
The files how now been committed to your local repository, not the remote repository. To commit the files to the remote repository, finalize with:
git push
How to revert
git reset --hard
How to change the commit message editor
You can change the editor used by adding the additional lines in your ~/.gitconfig file:
[core]
editor = nano
How to find repository location
First get the origin:
git remote
Then use the result, in my case origin, in a statement like this:
git remote show origin
That will print out the remote URL of the repository.
