reset git after commit code example
Example 1: git soft reset 1 commit
# reset one commit
git reset --soft HEAD~1
# reset to s specefic commit point
git reset --soft <COMMIT ID>
Example 2: reset to commit
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit