Useful Git commands

Here is a list of Git commands that I never remember off by hand when I need them.

To set the default Git editor :
git config --global core.editor "vim"