cgit command to revert to a commit code example
Example 1: how discharge changes e recover last commit git
git reset HEAD --hard
Example 2: how to revert commit in git
git checkout <commit hash>
Example 3: how discharge changes e recover last commit git
git clean -fd