# https://stackoverflow.com/questions/11628074/how-to-make-git-ignore-my-changes
$ git checkout .
# https://stackoverflow.com/questions/927358/how-do-i-undo-the-most-recent-commits-in-git/927386#927386
$ git commit -m "mistakes" # (1)
$ git reset HEAD~ # (2)
# https://stackoverflow.com/questions/8605447/how-to-rebase-all-the-commits-from-the-beginning
$ git rebase -i --root
$ git config --global user.email "[email protected]"
$ git config --global user.name "Your Name"
git config --global color.ui "auto" git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=86400' # for a day