mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 16:02:08 +02:00
13 lines
383 B
Markdown
13 lines
383 B
Markdown
# git rename-branch
|
|
|
|
> 重新命名一个 Git 分支。
|
|
> 属于 `git-extras` 的一部分。
|
|
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-rename-branch>.
|
|
|
|
- 重新命名你目前所在的分支:
|
|
|
|
`git rename-branch {{新的分支名称}}`
|
|
|
|
- 重新命名一个特定的分支:
|
|
|
|
`git rename-branch {{旧的分支名称}} {{新的分支名称}}`
|