Answers for "git create branch from another branch"

3

branch from other branch

// Go first to the branch where you want to make a copy of
git checkout -b subbranch branch
Posted by: Guest on January-20-2021
25

create new branch git

$ git checkout -b [name_of_your_new_branch]
Posted by: Guest on January-07-2020
8

git create new branch from current

git checkout -b topic/newbranch
Posted by: Guest on March-05-2020
4

createa. branch off of development git

//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myFeature dev
Posted by: Guest on March-17-2020
1

create new branch git from master

git checkout -b new-branch-name
Posted by: Guest on December-09-2020
3

git create branch from another branch

# workflow, step by step:
git checkout srcBranch		# where new branch will be created from
git branch newBranch		# newBranch is created from srcBranch
git checkout newBranch		# switch from srcBranch to newBranch

# in a single line:
git checkout -b newBranch srcBranch
git checkout -b newBranch	# srcBranch is optional if already checked out
Posted by: Guest on September-18-2021

Code answers related to "git create branch from another branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language