Fixing Commits
Table of contents
I accidentally
…added a commit to staging area? What to do?
$ git log --oneline
dc7aad8 Some Fancy commit message
1ca95df Some Fancy commit message
git reset to rescue!
$ git reset --hard HEAD^
HEAD is now at 1ca95df Some Fancy commit message
$ git log -1 --oneline
1ca95df Some Fancy commit message