If you commit often, you're able to easily throw away your changes without fear.
To discard, forever and without recovery, your changes in your working directory.
$ git checkout -- .
$ git config --global format.pretty "%C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset"
$ git config --global core.pager "less -FRSX"
$ brew install tig
git commitgit pull is just git fetch and git merge in one command. It pulls in the history from the remote, and then merges it into HEAD.$ git checkout -b <branchname>
To merge a branch INTO master
$ git checkout master
$ git merge <branchname>