Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One of the coolest things I've learned about recently is `.git/info/exclude`. It allows you to ignore files in the local repo without modifying the repo's .gitignore

Very useful if you want to add your own .envrc or shell.nix to a repo.



I just add .envrc and shell.nix to my global gitignore. Along with docker-compose.override.yml. You can always force-add an ignored file, it'll be tracked from then on.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: