DEV Community

Discussion on: Git: Keeping Files from Being Tracked Without .gitignore

Collapse
 
jingxue profile image
Jing Xue • Edited

I would stick to .gitignore for excluding project files, precisely because .gitignore is committed and propagated. And you actually want to make sure everybody has them excluded, otherwise if someone has theirs committed and pushed, it'll mess up others' local setup when they pull it. Remember info/exclude is local per repo, meaning every time someone clones a repo, they need to remember to manually edit the file. That is very error-prone.