Reopen Last Commit in Git

Run the command below if you want to reopen the last commit in your git

git reset --soft HEAD~

This is useful if you miss something in your last commit. Instead of creating new commit and squashing it, you can open last commit and fix it there.

comments powered by Disqus