From 9c71e6ef8f71f6102d53263c3be4e62d41122c46 Mon Sep 17 00:00:00 2001 From: forty2 Date: Wed, 11 Dec 2024 08:38:42 +0800 Subject: [PATCH] git-branch: update page (#15113) --- pages/common/git-branch.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/git-branch.md b/pages/common/git-branch.md index 7995f42351315e..ab428d9f5962a9 100644 --- a/pages/common/git-branch.md +++ b/pages/common/git-branch.md @@ -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}}`