Follow Instructions
$ git config --global user.name "John Iacona"
$ git config --global user.email j.iacona@kew.org
$ git clone git@github.com:RBGKew/bioinfo-utils.git
$ git init
$ git remote add origin git@github.com:RBGKew/shiny-new-repository.git
$ git add .
$ git push -u origin master
A file can exist in one of 4 states in git
git status
is your friend
$ vim docs/people/john-iacona.md
$ git add docs/people/john-iacona.md
$ vim docs/people/john-iacona.md
$ git diff
$ git add docs/people/john-iacona.md
$ git commit -m "Super useful commit message"
other obligatory xkcd...
Commit messages should document what you have done for others and your future-self
$ git log
If you are using my .gitconfig file, the following aliases can be useful.
$ git lol
$ git lola
origin
is the most common
$ git push -u origin HEAD
fetch
changes and merge them with yours
$ git fetch
$ git merge origin/master
fetch
vs. pull
pull
tries to fetch and merge in one step.
$ git pull