How to undo git reset –soft to get my changes back?

In $ git reflog you should find some of your commits. Once you find the latest commit that you want to move to

you should reset back to your commit id $ git reset _Your_Hash_ , as $ git reset --soft just reset the files and not the index or working tree.

Leave a Comment