how to get current git branch
git branch --show-current
how to get current git branch
git branch --show-current
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]
git checkout new branch
// create and checkout new branch in one line
git checkout -b new_branch
create new branch git
$ git checkout -b [name_of_your_new_branch]
git new branch from current
branchShell/Bash By Scriper on Sep 2 2020 Comment
// Example for creating a new branch named myNewBranch
git checkout -b myNewBranch
// First Push
git push --set-upstream origin myNewBranch
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