From: Stephan Beyer <s-beyer@gmx.net>
To: Jun Ma <sync.jma@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git checkout -b -f v1.5.5.1
Date: Mon, 5 May 2008 17:58:30 +0200 [thread overview]
Message-ID: <20080505155830.GC18443@leksak.fem-net> (raw)
In-Reply-To: <dcf6addc0805050848v91589c6i6c2fca168b7644d5@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 595 bytes --]
Hi,
> I just mistaken 'git checkout -b 1.5.5.1 v1.5.5.1' to 'git
> checkout -b -f v1.5.5.1', and I don't how to delete it ,
Try
git branch -D -- -f
> 537 git-branch -D -f
> 538 git-branch -D \-f
> 539 git-branch -D "\-f"
>
> all the above operations were failed. :(
In all cases, git-branch gets -f as parameter, because your shell "expands"
them to -f.
> PS: Would it be better if we do checking on branch name to avoid this case?
What do you want to check for?
No leading dashes?
--
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-05-05 16:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 15:48 git checkout -b -f v1.5.5.1 Jun Ma
2008-05-05 15:58 ` Stephan Beyer [this message]
2008-05-05 16:09 ` Jun Ma
2008-05-05 16:03 ` Eric Hanchrow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080505155830.GC18443@leksak.fem-net \
--to=s-beyer@gmx.net \
--cc=git@vger.kernel.org \
--cc=sync.jma@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox