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 <old-branch> <new-branch>
10
12 Rename local branch and push the new branch to remote
13
15 <old-branch>
16
17 Old branch whose has to be renamed. This is an optional parameter. If no value is supplied then the current branch will be renamed.
18
19 <new-branch>
20
21 New branch name
22
24 $ git rename-branch old-name new-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 July 2019 GIT-RENAME-BRANCH(1)