From 52b6af039e5e7725c4fb8bf0dab24b03cd1cc493 Mon Sep 17 00:00:00 2001 From: markevan100 <41275604+markevan100@users.noreply.github.com> Date: Sun, 16 Dec 2018 03:01:47 -0700 Subject: [PATCH] git-branch: Add comment that a branch must not be currently checked out in order to delete it (#2651) --- pages/common/git-branch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-branch.md b/pages/common/git-branch.md index ea3ec2f039..b4afa23d53 100644 --- a/pages/common/git-branch.md +++ b/pages/common/git-branch.md @@ -22,6 +22,6 @@ `git branch -m {{old_branch_name}} {{new_branch_name}}` -- Delete a local branch: +- Delete a local branch (must not have it checked out to do this): `git branch -d {{branch_name}}`