git reset to commit hard all code example
Example 1: git reset head
sudo git reset --hard Head
Example 2: reset to commit
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit
sudo git reset --hard Head
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit