If you’ve made a commit, but want to revert the commit and retain the file changes as unstaged, do the following: git reset –soft HEAD^ git reset HEAD
If you’ve made a commit, but want to revert the commit and retain the file changes as unstaged, do the following: git reset –soft HEAD^ git reset HEAD