Reopen Last Commit in Git

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

1
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