Git Cheatsheet
While working on many things, many a times you have some half done work meanwhile another IMPORTANT issues comes in between. So you commit the current WIP thing, switch to a new branch and continue the work. Not when you come back you want to remove the last commit and put the changes in the unstanged area (as if you never got the IMPORTANT issue in between)
git reset --soft HEAD^
# or
git reset HEAD^
git fetch --prune