Answers for "git how to create a branch from a specific 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

git create branch from commit

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

Code answers related to "git how to create a branch from a specific commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language