Undo Git Add and Git Commit
1 min readJan 22, 2018
git reset --soft HEAD^
(undogit commit
)git reset
(undogit add
)
Step 1, reset --soft HEAD^
, undoes git commit
and brings you back to your git stage post- git add
.
Step 2, reset
, undoes git add
, bringing you back to your git status before this add-everything debacle.
Happy coding!