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

Re: file is showing as modified even that it was never commited

From
Sergey Organov <sorganov@gmail.com>
Date
May 4, 2020, 17:17 UTC
Message-ID
<874ksvei1r.fsf@osv.gnss.ru>
In-Reply-To
<CAEoQP9gs-a1NanNpYiFQgTs0C+CeYhbD8rMjoFVat1ZSijNA2A@mail.gmail.com>
Dear Ewa,
Please see below.
Ewa Śliwińska <kreska07@gmail.com> writes:
>> That actually was a solution to your problem, not a workaround.
Show 8 quoted lines
> Not really, because I would like to investigate what happened, not
> just fix it. In that case I could as well recreate repository I
> guess...
>
> I agree that I could add those files accidentally. But I'm really
> disappointed in fact that you seem to ignore all the part where I
> described in details how I checked this and why I think this is not
> the case.

Except you didn't give actual details. Please give exact commands you issued and exact answers you've got.

For example:
$ ls .test
a  x
$ git status
On branch v4.0
Your branch and 'origin/v4.0' have diverged,
and have 2 and 29 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
	modified:   .test/a
no changes added to commit (use "git add" and/or "git commit -a")
$ git log -- .test
commit e1e7818f4120b5ebc622c8dbf1b257ea8a03530c
Author: Sergey Organov <sorganov@gmail.com>
Date:   Mon May 4 18:55:58 2020 +0300
    Test
$ git log -- .test/a
commit e1e7818f4120b5ebc622c8dbf1b257ea8a03530c
Author: Sergey Organov <sorganov@gmail.com>
Date:   Mon May 4 18:55:58 2020 +0300
    Test
$ git log -- .test/x
$ 
> Could you please answer if there was something wrong with my checking?
Nobody could tell unless you actually show us your checkings.
> I'm asking second time.
Thanks, we've noticed.
-- Sergey
Previous: Ewa ŚliwińskaNext: Ewa Śliwińska
Message 6 of 17 in “file is showing as modified even that it was never commited”
  1. Ewa ŚliwińskaMay 3, 2020
  2. Shourya ShuklaMay 4, 2020
  3. Ewa ŚliwińskaMay 4, 2020
  4. Shourya ShuklaMay 4, 2020
  5. Ewa ŚliwińskaMay 4, 2020
  6. Sergey OrganovMay 4, 2020
  7. Ewa ŚliwińskaMay 4, 2020
  8. Sergey OrganovMay 4, 2020
  9. Ewa ŚliwińskaMay 4, 2020
  10. Andreas SchwabMay 4, 2020
  11. Ewa ŚliwińskaMay 5, 2020
  12. Andreas SchwabMay 5, 2020
  13. Ewa ŚliwińskaMay 5, 2020
  14. Andreas SchwabMay 5, 2020
  15. Ewa ŚliwińskaMay 5, 2020
  16. Andreas SchwabMay 5, 2020
  17. Ewa ŚliwińskaMay 5, 2020

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.