git diff id1 id2 is to view git commit

Make one commit per logical change

git log to see which files have been changed in each commit

git clone to download the whole repository

git config --global color.ui auto

git checkout id: go back to a commit

git checkout branch_name: most recent commit

git diff with no arguments: compare current state with most recent commit

git reset ­­--hard to get rid of uncommitted changes

git commit -­a -­m "Commit message" commit all changes

git reflog: commits that recently checked out