Global Information Tracker (git)

The git commands I like to remember.

Forgott a Thing

To change your last commit and add something or fix a typo in the commit messag, use --amend:

git commit -m "initial commit"
git add the_file.txt
git commit --amend

You can now overwrite your previous commit and have just one clean commit.