Originally published at hoelz.ro
Have you ever been working in a Git repository and wanted Git commands like git status to ignore certain files, b...
For further actions, you may consider blocking this person and/or reporting abuse
Your personal .gitignore should contain files/directories that are produced by your OS, IDE and personal tools.
In my opinion things like
.idea
,.DS_Store
,Thumbs.db
do not belong in a project's .gitignore but in personal ignore files.I agree, but the number of other developers on any random project who use badly-behaved OS or IDEs is often quite high. You could tell them to use a particular
.gitignore
configuration and double-check all their commits, or you could just include it all in the repo and forget about it.Definitely agree on this!
I didn't know that one, that is interesting indeed.
I have two git macros for edit these files:
git ignore
andgit exclude
.Great tip! Definitely useful instead of polluting the repo’s gitignore. The fact that you can define a global configuration applied to all repos is awesome. Too bad it’s not known more!
How do you know it's not well-known? :P
This is useful information, thank you.
Cool tip! Thanks for sharing. I've kept things in a separate folder for a long time, or just remember to not add it, which ends up taking more bandwidth than I'd like.
cc @maestromac
This is really awesome!
Thanks for the tip :)
Awesome