Commit often
If you commit often, you're able to easily throw away your changes without fear.
Warning: this command is irrecoverable
To discard, forever and without recovery, your changes in your working directory.
$ git checkout -- .
pretty log
$ git config --global format.pretty "%C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset"
$ git config --global core.pager "less -FRSX"
tig (a nicer looking git CLI)
$ brew install tig