How to Git - Common commands

So, you've been commiting stuff and doing simple things. Now it's time to get to know simple commands that might help you quite a lot.

Show your local branches: git branch
Show local and remote branches: git branch -a
Listing files changed in each commit: git log --name-only
Note that by using the above command you'd be able to find in which commits you changed a given file, then you could see the changes of that commit by using: git show commit_id_hash
Show the changes you are NOT going to commit: git diff
Show the changes you ARE going to commit: git diff --cached
Cancel the commit of a file: git reset HEAD -- name_of_file.ext
If you want to delete a file: git rm path/to/file.extension