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

Re: found some code...

From
HHHolger Hellmuth <hellmuth@ira.uka.de>
Date
Jan 18, 2012, 09:56 UTC
Message-ID
<4F16973E.8040302@ira.uka.de>
In-Reply-To
<2918969.0SyTOLELv0@reg-desktop>
On 18.01.2012 03:49, Ron Eggler wrote:
Show 18 quoted lines
> On January 18, 2012 12:16:49 PM Andrew Ardill wrote:
>> Hi Ron,
>>
>> On 18 January 2012 12:02, Ron Eggler<ron.eggler@gmail.com>  wrote:
>>> Hi There,
>>>
>>> Some mishap had happened with my project:
>>> I found a piece of code that is the most recent one that never got
>>> commited to the repository. It is dated December 5th and it definitely
>>> is the most recent piece of code.
>>> Now in the mean time I switched computers so I had to reinstall git and
>>> get create new local folders. Now this directory with the most recent
>>> code, shows every file as unversioned which should not be true.
>>> Only a couple, maybe 3 files had changed with that last change. Now when
>>> I commit this now, is that gonna mess up my old repo or can I safely
>>> gio ahead and commit that most recent code (even tho it might commit
>>> the whole folder) - it almost seems like it forgot which files
>>> were in the repo vs. which files were in my local folder...

Try "git update-index --refresh", more info in this recent thread "http://comments.gmane.org/gmane.comp.version-control.git/188291"

If this doesn't help: Human language is very ambiguous. What do you mean by "found a piece of code"? Somewhere outside the repository, in a branch inside the repository, in a subdirectory? What do you mean by "get create new local folders"? Do you mean a folder where you copied the repository or do you mean folders inside your repository where you created new files with your editor?

Previous: Ron EgglerNext: Holger Hellmuth
Message 4 of 5 in “found some code...”
  1. Ron EgglerJan 18, 2012
  2. Andrew ArdillJan 18, 2012
  3. Ron EgglerJan 18, 2012
  4. Holger HellmuthJan 18, 2012
  5. Holger HellmuthJan 18, 2012

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.