Skip to content

Commit 315b3ba

Browse files
committed
Merge branch 'mm/branch-doc-updates' into maint
* mm/branch-doc-updates: Documentation/branch: document -M and -D in terms of --force Documentation/branch: document -d --force and -m --force
2 parents bde6a72 + 83fe167 commit 315b3ba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Documentation/git-branch.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ OPTIONS
8181
`--track` or `--set-upstream`.
8282

8383
-D::
84-
Delete a branch irrespective of its merged status.
84+
Shortcut for `--delete --force`.
8585

8686
-l::
8787
--create-reflog::
@@ -95,13 +95,17 @@ OPTIONS
9595
--force::
9696
Reset <branchname> to <startpoint> if <branchname> exists
9797
already. Without `-f` 'git branch' refuses to change an existing branch.
98+
In combination with `-d` (or `--delete`), allow deleting the
99+
branch irrespective of its merged status. In combination with
100+
`-m` (or `--move`), allow renaming the branch even if the new
101+
branch name already exists.
98102

99103
-m::
100104
--move::
101105
Move/rename a branch and the corresponding reflog.
102106

103107
-M::
104-
Move/rename a branch even if the new branch name already exists.
108+
Shortcut for `--move --force`.
105109

106110
--color[=<when>]::
107111
Color branches to highlight current, local, and

0 commit comments

Comments
 (0)