Skip to content

Commit

Permalink
Merge branch 'mm/branch-doc-updates' into maint
Browse files Browse the repository at this point in the history
* mm/branch-doc-updates:
  Documentation/branch: document -M and -D in terms of --force
  Documentation/branch: document -d --force and -m --force
  • Loading branch information
Junio C Hamano committed Jul 27, 2015
2 parents bde6a72 + 83fe167 commit 315b3ba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Documentation/git-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ OPTIONS
`--track` or `--set-upstream`.

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

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

-m::
--move::
Move/rename a branch and the corresponding reflog.

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

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

0 comments on commit 315b3ba

Please sign in to comment.