how to recover commits using gitbash code example Example: revert commit git git revert <commit hash>