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]
git create new branch from current
git checkout -b topic/newbranch
create new branch git from master
git checkout -b new-branch-name
how to create a new branch
- git branch xyz ==>
it creates new branch named 'xyz' but still keep being on master branch
- git checkout xyz ==>
it will change your branch to the develop branch
- git checkout -b xyz ==>
it creates also a branch named xyz and switches to it automatically
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