I’ve read solutions from other questions git ignore files, but I still can’t get it to work.
So here’s what I’ve done:
- created
.gitignore_globalfile. - added
.mp3 .mp4 .oog .wmv .wmathen saved. - executed this command :
git config --global core.excludesfile .gitignore_global
but when i commit it still adds my mp3 files. I even tried git rm -r --cached . then git add . to clear the cache, but even after that it still adds it back. what I’m I missing here?
Can you try adding to
.gitignore_globalthe following line :See documentation Ignoring-files.