git reset commit hard code example
Example 1: git reset head of master
git fetch origin
git reset --hard origin/master
Example 2: reset to commit
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit
git fetch origin
git reset --hard origin/master
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit