Skip to content

Commit

Permalink
git-branch.txt: document -f correctly
Browse files Browse the repository at this point in the history
'git branch -f a b' resets a to b when a exists, rather then deleting a.
Say so in the documentation.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael J Gruber authored and Junio C Hamano committed Mar 17, 2009
1 parent 50fd699 commit fcfdf79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/git-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ OPTIONS
based sha1 expressions such as "<branchname>@\{yesterday}".

-f::
Force the creation of a new branch even if it means deleting
a branch that already exists with the same name.
Reset <branchname> to <startpoint> if <branchname> exists
already. Without `-f` 'git-branch' refuses to change an existing branch.

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

0 comments on commit fcfdf79

Please sign in to comment.