Skip to content

Commit

Permalink
git-rename-branch: add page (#5950)
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanMachine1 authored May 13, 2021
1 parent 090e182 commit 92a4fea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pages/common/git-rename-branch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# git rename-branch

> Rename a Git branch.
> Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-rename-branch>.
- Rename the branch you are currently on:

`git rename-branch {{new_branch_name}}`

- Rename a specific branch:

`git rename-branch {{old_branch_name}} {{new_branch_name}}`

0 comments on commit 92a4fea

Please sign in to comment.