how to make a branch out of a previous commit code example Example: git checkout previous commit git reset --hard HEAD~10 To rollback 10 commits back: