Answers for "how to commit work from a branch in git"

0

git branch from commit

You can create the branch via a hash:

git branch branchname <sha1-of-commit>
Or by using a symbolic reference:

git branch branchname HEAD~3
To checkout the branch when creating it, use

git checkout -b branchname <sha1-of-commit or HEAD~3>
Posted by: Guest on July-30-2020

Browse Popular Code Answers by Language