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

Re: Uncommitted source and header files disappeared after a git mv operation

From
MVMahesh Vaidya <forvaidya@gmail.com>
Date
Jun 23, 2010, 10:47 UTC
Message-ID
<AANLkTimi_kN_i2XmKiCB4JdqGD4_kFSjIbajtvpBWnwE@mail.gmail.com>
In-Reply-To
<AANLkTinernf5BMowVb-iJZi0c9d6SlsGSoy2L3p4H-3E@mail.gmail.com>

That means those files were not added to index ; Even that private files should stay intact

I have done following test case PWD - lowflow touch foo bar car cd .. git mv lowflow workflow git commit -m "mv test" -a git push cd workflow # Uncommited files visible

On Wed, Jun 23, 2010 at 4:04 PM, Laszlo Papp <djszapi@archlinux.us> wrote:
Show 41 quoted lines
> On Wed, Jun 23, 2010 at 12:31 PM, Santi Béjar <santi@agolina.net> wrote:
>> On Wed, Jun 23, 2010 at 12:24 PM, Laszlo Papp <djszapi@archlinux.us> wrote:
>>> Hello,
>>>
>>> I have got a very big trouble, so please help me if you can :(
>>>
>>> I have done a git mv operation for a whole directory, so I have put it
>>> into another subfolder and all my uncommitted/unpushed source and
>>> header files were lost ... How can I regain them ?
>>>
>>> So I did "git mv some-directory-containing-lots-of-uncommitted-changes
>>> total_different_folder/some-new-name". If I remember well then I did
>>> commit/push for that git mv operation.
>>>
>>> git status doesn't show my changes either.
>>
>> I can't reproduce it. Can you provide a test case so we can reproduce
>> it. Additionally you should tell us more information, like git
>> version, architecture.
>>
>> Santi
>>
>
> http://www.archlinux.org/packages/extra/i686/git/
>
> So the version is 1.7.1 and the architecture is i686.
>
> I have tried the following commands:
> git log -1
> git log -1 --stat
> git reflog
>
> Only this commit happened and I can't find the files in the new directory.
>
> Best Regards,
> Laszlo Papp
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
-- 
Thank you and best regards.
Mahesh Vaidya  / 9740500144
http://www.twitter.com/forvaidya
Previous: Laszlo PappNext: Laszlo Papp
Message 4 of 6 in “Uncommitted source and header files disappeared after a git mv operation”
  1. Laszlo PappJun 23, 2010
  2. Santi BéjarJun 23, 2010
  3. Laszlo PappJun 23, 2010
  4. Mahesh VaidyaJun 23, 2010
  5. Laszlo PappJun 23, 2010
  6. Matthieu MoyJun 23, 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.