From: "Yoann Hervé" <yoann.herve.ext@makina-corpus.com>
To: git@vger.kernel.org
Subject: Delete branch start with "-"
Date: Thu, 09 Apr 2009 14:28:48 +0200 [thread overview]
Message-ID: <49DDEA00.9090003@makina-corpus.com> (raw)
Hello,
by mistake I have created a branch with a "-" at the beginning of his
name, and now I can't delete it.
git branch -d -f
error: unknown switch `s'
usage: git-branch [options] [-r | -a] [--merged | --no-merged]
or: git-branch [options] [-l] [-f] <branchname> [<start-point>]
or: git-branch [options] [-r] (-d | -D) <branchname>
or: git-branch [options] (-m | -M) [<oldbranch>] <newbranch>
Generic options
-v, --verbose be verbose
--track set up tracking mode (see git-pull(1))
--color use colored output
-r act on remote-tracking branches
--contains <commit> print only branches that contain the commit
--abbrev[=<n>] use <n> digits to display SHA-1s
Specific git-branch actions:
-a list both remote-tracking and local branches
-d delete fully merged branch
-D delete branch (even if not merged)
-m move/rename a branch and its reflog
-M move/rename a branch, even if target exists
-l create the branch's reflog
-f force creation (when already exists)
--merged list only merged branches
How can I delete it ?
Thanks,
Yoann
next reply other threads:[~2009-04-09 13:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-09 12:28 Yoann Hervé [this message]
2009-04-09 13:12 ` Delete branch start with "-" Björn Steinbrink
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=49DDEA00.9090003@makina-corpus.com \
--to=yoann.herve.ext@makina-corpus.com \
--cc=git@vger.kernel.org \
/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