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