git reset soft to last commit code example
Example 1: git reset last commit
$ git reset --soft HEAD~1
Example 2: git soft reset 1 commit
# reset one commit
git reset --soft HEAD~1
# reset to s specefic commit point
git reset --soft <COMMIT ID>
$ git reset --soft HEAD~1
# reset one commit
git reset --soft HEAD~1
# reset to s specefic commit point
git reset --soft <COMMIT ID>