1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:22:09 +02:00

git-branch: update page (#15113)

This commit is contained in:
forty2 2024-12-11 08:38:42 +08:00 committed by GitHub
parent a7a3ab4ba6
commit 9c71e6ef8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}}`