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 a new branch based on another branch
//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myFeature dev
create branch from another branch
$ git checkout -b myFeature dev
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
git command to create a branch from another branch
$ git checkout -b myfeature dev
can i create a branch inside of another branch in GIT
$ git checkout dev
$ git merge --no-ff myFeature
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