branch from other branch
// Go first to the branch where you want to make a copy of
git checkout -b subbranch branch
branch from other branch
// Go first to the branch where you want to make a copy of
git checkout -b subbranch branch
create new branch git
$ git checkout -b [name_of_your_new_branch]
git create new branch from current
git checkout -b topic/newbranch
createa. branch off of development git
//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myFeature dev
create new branch git from master
git checkout -b new-branch-name
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us