Archive for September 2014
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
.
git: How to push a new branch to a remote repository
git push -u REMOTE BRANCH_NAME |
This will also create an association between the local and the remote branch, so you can afterwards just issue git push
.