COMMANDE DE COSE DE GIT
git checkout <commit>
Pushy Pants
git checkout <commit>
git reset --hard HEAD~10
To rollback 10 commits back:
git checkout -b old-state 0d1d7fc32
git checkout <commit_id>
git checkout -b <new branch> <commit_id>
git checkout HEAD~X // x is the number of commits to go back
# git: checkout to previous commit
git checkout HEAD~X # x number of commits to go back
# Go back one commit:
git checkout HEAD~1
$ git reset --hard <commit_id>