TIL: git exclude

Published September 04, 2025

I think we are all aware of git ignore but today I learned about git exclude from Marijke's blog post. The tl;dr is that you can have an exclude file (located in the .git/info/exclude directory of your repo) which will tell git not to track the files in it. The benefit of this is that this is not checked in to the repo. So you can use it to skip things like a personal Justfile or other thing that you use that shouldn't be committed without impacting other people who use the repo. I'm not going to go into more of the specifics since Marijke did an excellent job of it in her post. Just know that this is another nice tool we can all have in our boxes.


Previous: Kagi smallweb Next: Random choice from Javascript array