how to revert the git add code example
Example 1: revert git add
git reset <file> or git reset
Example 2: how to revert to log in git
git revert --no-commit 0766c053..HEAD
git commit
git reset <file> or git reset
git revert --no-commit 0766c053..HEAD
git commit