git create new branch
// Example for creating a new branch named myNewBranch
git checkout -b myNewBranch
// First Push
git push --set-upstream origin myNewBranch
git create new branch
// Example for creating a new branch named myNewBranch
git checkout -b myNewBranch
// First Push
git push --set-upstream origin myNewBranch
git command to create a branch
//Create a New Branch
git checkout -b [name_of_your_new_branch]
//First Push
git push --set-upstream origin [name_of_your_new_branch]
create new branch git
$ git checkout -b [name_of_your_new_branch]
create new branch git
$ git checkout --track origin/newsletter
Branch newsletter set up to track remote branch newsletter from origin.
Switched to a new branch 'newsletter'
how to create new branch
How to create a new branch in git
$ git checkout -b good
here good is new branch name
the line 3 after executing we will go to that branch
git create branch from master
# 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