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

checkout -b remotes/origin/<branch> should not work

From
Stefan Beller <sbeller@google.com>
Date
May 14, 2017, 03:52 UTC
Message-ID
<CAGZ79kYACtA_q6kJ=gGYe02H-a9g_GV=kKLn8jy2ZZKvjxGYNQ@mail.gmail.com>
NEEDSWORK:

checkout -b remotes/origin/<branch> should not work, unless force is given (maybe?)

(I just run into that, now I have a remote tracking branch that points at my detached HEAD. Oh well.)

Next: Jeff King
Message 1 of 3 in “checkout -b remotes/origin/<branch> should not work”
  1. Stefan BellerMay 14, 2017
  2. Jeff KingMay 14, 2017
  3. Junio C HamanoMay 14, 2017

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.