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

real git pull grief

From
JVJay Vee <jvsrvcs@gmail.com>
Date
Jan 16, 2013, 00:17 UTC
Message-ID
<CADq_mb8LwzbjvaXGCR-6TZbTShf2nzw5wtNZ66_XmOM00-=xzQ@mail.gmail.com>

I have not changed any code and just tried to do a git pull and get the following message:

Updating 527f1ee..18cf73e
error: Your local changes to the following files would be overwritten by merge:
        java/..../Info.java
Please, commit your changes or stash them before you can merge.
Aborting
----------

I HAVE NOT CHANGED THIS FILE. It is telling me that my local changes.... huh? I have not changed or modified the file.

---- When I do a $git status I see a lot of other files that begin with:

# modified: .... <many of these>

How do I get out of this mess? I do not want to reset head. I want to get back to the state where it does not think I have modified a specific set of files... namely the files that I did not change.

How did I get into this state? How do I prevent from getting into this state in the future? How do I get out of this state now?

thanks for all the help.
J.V.
Next: Jonathan Nieder
Message 1 of 3 in “real git pull grief”
  1. Jay VeeJan 16, 2013
  2. Jonathan NiederJan 16, 2013
  3. Jay VeeJan 16, 2013

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.