git reset soft with commit id 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: how to reset back to commit id in git
git reset --hard id
git push --force