git: How to checkout a specific commit/version to a new branch

git checkout -b branch--new commit-hash

will checkout the commit-hash commit in a new branch called branch-new.

Series Navigationgit: How to push a new branch to a remote repositorygit: Completely revert the last commit

One Response to “git: How to checkout a specific commit/version to a new branch”

Leave a Reply

*

Posts’ Calendar
September 2014
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930