how to rollback git branch after checkout commit code example
Example 1: how to revert to log in git
git revert --no-commit 0766c053..HEAD
git commit
Example 2: get back some commits git
git revert {commit_id}'
git revert --no-commit 0766c053..HEAD
git commit
git revert {commit_id}'