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

Why am I on Master instead of my branch

From
JWJeffrey Walton <noloader@gmail.com>
Date
Mar 15, 2020, 01:54 UTC
Message-ID
<CAH8yC8=FZrDmHBSk=GFZd08Ovk4zffyB7KEOoyUpAPLYi_xUeA@mail.gmail.com>

I'm trying to test some changes I made on a branch on some other machines. The changes were committed and pushed. However, after a checkout and pull on the other machines the changes were missing.

When I do a 'git branch' I am on master for some reason:
$ git branch
  cmake-inno-setup-COVERAGE
  config-guess
  declarations
* master
However, I have never switched back to master:
$ history | grep git | grep -E 'master|cmake'
...
2630  git checkout cmake-inno-setup-COVERAGE
 2631  git fetch upstream cmake-inno-setup-COVERAGE
 2632  git checkout cmake-inno-setup-COVERAGE
 2634  git checkout cmake-inno-setup-COVERAGE
 2635  git branch cmake-inno-setup-COVERAGE
 2757  git diff upstream/master
 2766  history | grep git | grep -E 'master|cmake'
<end of history>
How am I on master when I checked out cmake-inno-setup-COVERAGE?
Next: Andreas Schwab
Message 1 of 3 in “Why am I on Master instead of my branch”
  1. Jeffrey WaltonMar 15, 2020
  2. Andreas SchwabMar 15, 2020
  3. SZEDER GáborMar 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.