I don't think that executing git reset --soft
will affect any commits. This will only affect your branch.
If you want to return commit 734e3a0
, you can try using git revert
:
git revert 734e3a0
This will give Git a command to add a new commit that cancels all 734e3a0
. Please note that this is a good option if this commit is in the middle of a branch, and it is also a good option for a branch whose history has already been published.
source share