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

Can't checkout branch

From
Larry Martell <larry.martell@gmail.com>
Date
Jul 14, 2020, 16:59 UTC
Message-ID
<CACwCsY7P5NiQL5ajHMOWo2EPiQZKUj_m_AVbtGy=z=twChimjw@mail.gmail.com>
In-Reply-To
<CACwCsY7YSn_mbtFv3QjL5dY80G6e_r-gGC3SGo5rO5b8LGXxVA@mail.gmail.com>

Been using git for a long time, first time I have seen this. I am unable to checkout a branch.

$ git status # On branch master nothing to commit, working directory clean

$ git fetch --all
Fetching origin
 * [new branch]      deploy     -> origin/deploy
$ git checkout deploy
$ git branch
* master
$ git checkout origin/deploy
Note: checking out 'origin/deploy'.
You are in 'detached HEAD' state.

I tried deleting the local repo and recloning, but I got the same results. I see the branch on github. I can checkout other branches, just not this one.

What could be going on?
Next: Chris Torek
Message 1 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.