git checkout commit

C++
git checkout <commit>git checkout -b origin/branch-name
git checkout -b branch-namegit reset --hard HEAD~10
To rollback 10 commits back:$ git checkout -b new-branch --track origin/develop
Source

Also in C++: