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

Re: Can't checkout branch

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 15, 2020, 14:50 UTC
Message-ID
<xmqq5zaoltma.fsf@gitster.c.googlers.com>
In-Reply-To
<875zap8dqb.fsf@igel.home>
Andreas Schwab <schwab@linux-m68k.org> writes:
Show 10 quoted lines
> On Jul 14 2020, Chris Torek wrote:
>
>> To work around this in all versions of Git, you can just be
>> more explicit.  For instance:
>>
>>     git checkout deploy --
>>
>> forces Git to treat it as a branch name.
>
> For recent versions of git, you can also use `git switch deploy'.
Yes, that is the best piece of advice in the thread so far.
Thanks.
Previous: Andreas Schwab
Message 6 of 6 in “Can't checkout branch”
  1. Larry MartellJul 14, 2020
  2. Chris TorekJul 14, 2020
  3. Junio C HamanoJul 14, 2020
  4. Larry MartellJul 14, 2020
  5. Andreas SchwabJul 15, 2020
  6. Junio C HamanoJul 15, 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.