Closed Kyrela closed 6 months ago
I use git exclusion instead of .gitignore.
As .git/info/exclude
is local, I feel like a .gitignore
would help maintain a clean and open-for-contribution repo, as other people don't have access to these exclusions and could accidentally commit changes containing unwanted files.
I suggest you to put the content of your .git/info/exclude
in a .gitignore
I think I will merge this, and keep my exclusion as it is.
Do as you want ; but keep in mind that if you want to exclude something, most people will want to exclude it too, unless it's files that you manually added for a reason or another.
You should but every ignore line of your exclude
that is relative to generated files/IDEs&Tools in the .gitignore
, and keep only "local" ignores in exclude
- both can and, in fact, should be used.
Here's more resources about both solutions and when to use one or another in the context of colaborative development:
Based on
https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
, manually added.idea/
exclusion l23