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

Re: Corruption of branch?

From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
Date
Dec 14, 2015, 20:40 UTC
Message-ID
<1450125640.16044.4.camel@kaarsemaker.net>
In-Reply-To
<566F277F.4070101@gmail.com>
On ma, 2015-12-14 at 15:33 -0500, Thomas Nyberg wrote:
Show 13 quoted lines
> What exactly are you looking for? Here's the results of the following
> command:
> 
> $ git for-each-ref | grep frus
> 1750cba5a94b3fe6041aaf49de430a558a3b9bc8 commit 
> refs/heads/frus_body_cleaning
> 3a1dbe48299f6eda1cc4b69cab35284c0f0355eb commit	refs/remotes/o
> rigin/frus
> 1750cba5a94b3fe6041aaf49de430a558a3b9bc8 commit 
> refs/remotes/origin/frus_body_cleaning
> 
> Sorry if this isn't what you're looking for. I'm actually not very 
> familiar with these different internal git commands...

This is what I was looking for. Unfortunately it doesn't show any of the smoking guns I had hoped for.

That leaves only one option: you also have a file or directory named 'frus' in the root of your repository. In this case 'git checkout frus' does the same as 'git checkout -- frus' instead of DWIM'ing 'git checkout frus' to 'git checkout -b frus origin/frus'

-- 
Dennis Kaarsemaker
www.kaarsemaker.net
Previous: Thomas NybergNext: Junio C Hamano
Message 8 of 10 in “Corruption of branch?”
  1. Thomas NybergDec 14, 2015
  2. Stefan BellerDec 14, 2015
  3. Thomas NybergDec 14, 2015
  4. David TurnerDec 14, 2015
  5. Thomas NybergDec 14, 2015
  6. Dennis KaarsemakerDec 14, 2015
  7. Thomas NybergDec 14, 2015
  8. Dennis KaarsemakerDec 14, 2015
  9. Junio C HamanoDec 14, 2015
  10. Thomas NybergDec 14, 2015

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.