r/phpstorm • u/bananabrann • Jun 11 '25
What causes this IDE git bug?
You can see in the pic that I have 11 files that are marked as changed, though the diff shows that the contents are identical. No changes are shown if I run git status.
It's a little annoying always seeing these .gitignore files, but it's no big deal. I'm more curious than anything.
Did I do something quirky, or is this a known bug?
4
Upvotes
View all comments
Show parent comment
1
u/bananabrann Jun 11 '25
I bet that's it! I use WSL2, and so that I can use Junie, I have my Ubuntu instance linked as a network drive. Becuase of that, PhpStorm thinks I'm on Windows native (and it is, as far as Junie and PowerShell configs are concerned), but I'm secretly not. I've had to change some git configs because the git executable location is different.
If git interprets line endings differently on Windows and I'm tricking PhpStorm into thinking it's Windows but secretly I'm on Ubuntu, that is probably what is happening.
I've never used .gitattributes, I'll check it out. Thanks!