To add file: git add filename

To Commit: git commit

To Check the status: git status

To Save you change (back to last commit): git reset HEAD^ --soft

To Discard changes (back to last commit): git reset HEAD^ --hard

To reset to the last commit: git reset --soft HEAD~

To stash all the changes in the working tree: git stash

To get your changes back: git stash pop

To remove the specified files from the next commit: git reset HEAD