1GIT-CREATE-BRANCH(1) Git Extras GIT-CREATE-BRANCH(1)
2
3
4
6 git-create-branch - Create branches
7
9 git-create-branch [-r|--remote [remote_name]] <branchname>
10
12 Creates local branch named <branchname> and optionally sets up a remote
13 tracking branch.
14
16 <-r|--remote [remote_name]>
17
18 Setup a remote tracking branch using remote_name. If remote_name is not
19 supplied, use origin by default.
20
21 <branchname>
22
23 The name of the branch to create.
24
26 $ git create-branch integration
27
28 $ git create-branch -r integration
29
30 $ git create-branch -r upstream integration
31
33 As of 4.4.0, the default behavior has changed. git-create-branch will
34 no longer automatically setup a remote tracking branch unless the
35 -r|-remote option is specified.
36
38 Written by Jonhnny Weslley <jw@jonhnnyweslley.net>
39 Modified by Mark Pitman <mark.pitman@gmail.com>
40
42 <https://github.com/tj/git-extras/issues>
43
45 <https://github.com/tj/git-extras>
46
47
48
49 October 2017 GIT-CREATE-BRANCH(1)