Skip to content

Commit

Permalink
git-branch: update page (#15113)
Browse files Browse the repository at this point in the history
  • Loading branch information
dozingli authored Dec 11, 2024
1 parent a7a3ab4 commit 9c71e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/common/git-branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@

`git branch {{branch_name}} {{commit_hash}}`

- Rename a branch (must not have it checked out to do this):
- Rename a branch (you must switch to a different branch before doing this):

`git branch {{-m|--move}} {{old_branch_name}} {{new_branch_name}}`

- Delete a local branch (must not have it checked out to do this):
- Delete a local branch (you must switch to a different branch before doing this):

`git branch {{-d|--delete}} {{branch_name}}`

Expand Down

0 comments on commit 9c71e6e

Please sign in to comment.