1GIT-RENAME-BRANCH(1) Git Extras GIT-RENAME-BRANCH(1)
2
3
4
6 git-rename-branch - rename local branch and push to remote
7
9 git-rename-branch <new-branch> <old-branch>
10
12 Rename local branch and push the new branch to remote
13
15 <new-branch>
16
17 New branch name
18
19 <old-branch>
20
21 Old branch whose has to be renamed. This is an optional parameter. If no value is supplied then the current branch will be renamed.
22
24 $ git rename-branch new-name old-name
25
26 $ git rename-branch new-name
27
29 Written by Hozefa Jodiawalla <hozefarules@gmail.com>
30
32 <https://github.com/tj/git-extras/issues>
33
35 <https://github.com/tj/git-extras>
36
37
38
39 October 2017 GIT-RENAME-BRANCH(1)