Answers for "create new branch based by commit"

1

git create branch with specific commit

 
# Create a new branch from previous commit's hash
git branch develop 04c900c
 
# Push the new branch to remote repository
git push --set-upstream origin develop
 
# Checkout the new branch
git checkout develop
 
Posted by: Guest on August-20-2020
0

create new branch with commit id

git checkout -b <new branch> <commit id>
Posted by: Guest on July-22-2021
0

git create branch from commit

git branch branchname <sha1-of-commit>
Posted by: Guest on September-14-2021

Code answers related to "create new branch based by commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language