So where I work we use a variety of IDEs. I'm the only one that is using Rider so I don't want to add it to the project .gitignore
file. Rider creates a .run
folder in the root of every project. I want to tell git to ignore this folder in all projects. I added a local ~/.gitignore
with the following content:
.run/
Yet i'm still seeing the .run
in git status
. The .run
folder is untracked:
CodePudding user response:
Try clearing git cache
- add
/<path_to_folder>/.run
in gitignore file git rm -rf --cached .
git add
Now the magic will happen and your .run folder will be ignored
CodePudding user response:
So the comment from @TorgeRosendahl got me headed in the right direction. I looked in my global git settings and found the following:
core.excludefile=/mnt/c/Users/<user>/.gitignore_global
I didn't remember even setting that but apparently i did it a long time ago so git under windows & wsl could share the same .gitignore
file. I tried to change .gitignore_global
didn't work until I looked more closely at my config setting above i'm missing the s
in core.excludesfiles. After I fixed that it started working.