git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Fwd: Issue with Git Branch

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Jan 13, 2020, 00:42 UTC
Message-ID
<20200113004235.GI32750@szeder.dev>
In-Reply-To
<20200113001143.GA13099@syl.local>
On Sun, Jan 12, 2020 at 04:11:43PM -0800, Taylor Blau wrote:
Show 5 quoted lines
> On Sun, Jan 12, 2020 at 07:01:04PM -0500, Jude Guan Wang wrote:
> > 	I noticed something weird with my git command. In my local
> > 	environment I seem to have a branch named `-D`:
> >
> > 	And I don’t remember how I was able to create a branch like that.
> If you do find a reproducible way to create branches named '-D' or
> similar, please do let us know, as these are not intended to be valid
> branch names in general.
  $ git update-ref refs/heads/-D master
  $ git branch |head -n1
    -D
Previous: Taylor BlauNext: Taylor Blau
Message 3 of 5 in “Fwd: Issue with Git Branch”
  1. Jude Guan WangJan 13, 2020
  2. Taylor BlauJan 13, 2020
  3. SZEDER GáborJan 13, 2020
  4. Taylor BlauJan 13, 2020
  5. SZEDER GáborJan 13, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.