Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #git #create #branch #specific #commit
ADD COMMENT
Topic
Name
2+4 =