Store the credentials
git config credential.helper store
Undo a Git merge that hasn't been pushed yet
git reset --hard HEAD~1
Reset all changed files
git reset --hard
Clean all files not tracked (-f force, -d directories)
git clean -fd