Provided by: git-extras_4.6.0-1_all
git-create-branch - Create branches
git-create-branch [-r|--remote [remote_name]] <branchname>
Creates local branch named <branchname> and optionally sets up a remote tracking branch.
<-r|--remote [remote_name]> Setup a remote tracking branch using remote_name. If remote_name is not supplied, use origin by default. <branchname> The name of the branch to create.
$ git create-branch integration $ git create-branch -r integration $ git create-branch -r upstream integration
As of 4.4.0, the default behavior has changed. git-create-branch will no longer automatically setup a remote tracking branch unless the -r|-remote option is specified.
Written by Jonhnny Weslley <firstname.lastname@example.org> Modified by Mark Pitman <email@example.com>
<https://github.com/tj/git-extras> September 2018 GIT-CREATE-BRANCH(1)