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

Re: Mysterious junk in file.... "not commited yet"

From
Avery Pennarun <apenwarr@gmail.com>
Date
Apr 5, 2010, 18:52 UTC
Message-ID
<o2n32541b131004051152ie6c82b3wdab0f38a9e657943@mail.gmail.com>
In-Reply-To
<i2v26ae428a1004051113q68a0cf13o65fbf1349f941648@mail.gmail.com>

On Mon, Apr 5, 2010 at 2:13 PM, Howard Miller <howard@e-learndesign.co.uk> wrote:

Show 8 quoted lines
> I just found a file in my project that has "junk" at the beginning
> (looks like some binary stuff at the start of a php file). Git status
> and diff show nothing unusual (nothing to commit). Git log shows
> nothing I wouldn't expect and show 'shows' show noting. Git blame on
> the other shows the offending line as 'not commited yet'. I tried
> doing 'git checkout <filename>' but it didn't fix it.
>
> What am I missing? Has git broken somewhere?
You might have 'git add'ed the changed line.  Try this:
   git checkout HEAD -- <filename>
Have fun,
Avery
Previous: Howard MillerNext: Howard Miller
Message 2 of 6 in “Mysterious junk in file.... "not commited yet"”
  1. Howard MillerApr 5, 2010
  2. Avery PennarunApr 5, 2010
  3. Howard MillerApr 5, 2010
  4. Avery PennarunApr 5, 2010
  5. Matthieu MoyApr 5, 2010
  6. Howard MillerApr 5, 2010

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.