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

file is showing as modified even that it was never commited

From
Ewa Śliwińska <kreska07@gmail.com>
Date
May 3, 2020, 20:03 UTC
Message-ID
<CAEoQP9iY-0+=ETA0vrHL0HngccwtNA_3KX4WSSokJpOgJDGUeA@mail.gmail.com>
In-Reply-To
<CAEoQP9gVur=UDDPzHnLq-AryDnd45uYdEs3kajzLrtr572e_rA@mail.gmail.com>
Hi,

I’m probably missing something here, but it looks really weird and I can’t find any information on this.

My situation is as following: I created empty repository on Bitbucket, then cloned it, added code and made one initial commit (without push).

Now I changed the code and I would like to commit it, but I have some troubles.

The problem is some files are showing as changed while I never committed them. I never intended to commit them (they are under .idea directory, which I added to .gitignore). I checked with git log - I have only this one commit. I checked files affected by this commit using git show --pretty="" --name-only. Mentioned files are not there. Also checked the history of one particular file, using git log -p - no history here.|

At the same time, file is showing is changes not staged for commit when calling git status. For what is worth, file is even not there.

I hope you’ll help me unravel this. I am out of ideas, kind of seems like a bug.

Best regards Ewa

Next: Shourya Shukla
Message 1 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.