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

Why won't git checkout a branch?

From
JWJeffrey Walton <noloader@gmail.com>
Date
Jul 1, 2020, 08:41 UTC
Message-ID
<CAH8yC8m1=0n8zzoW--g_XLebJFqFSXpBpTr+1S58z7snLTt-0Q@mail.gmail.com>
Why can't I checkout a branch? What's broken this time?
$ rm -rf libb2
$ git clone https://github.com/noloader/libb2
Cloning into 'libb2'...
remote: Enumerating objects: 39, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 291 (delta 14), reused 23 (delta 8), pack-reused 252
Receiving objects: 100% (291/291), 431.67 KiB | 4.23 MiB/s, done.
Resolving deltas: 100% (162/162), done.
$ cd libb2
$ git fetch --all
Fetching origin
$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/autotools
  remotes/origin/fix-bigendian
  remotes/origin/m4
  remotes/origin/master
  remotes/origin/overhaul
$ git checkout m4
$ git branch
* master
Next: Andreas Schwab
Message 1 of 6 in “Why won't git checkout a branch?”
  1. Jeffrey WaltonJul 1, 2020
  2. Andreas SchwabJul 1, 2020
  3. Jeffrey WaltonJul 1, 2020
  4. Andreas SchwabJul 1, 2020
  5. Jeffrey WaltonJul 1, 2020
  6. Chris TorekJul 1, 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.