3 ms·
One .gitignore to rule them all
- mooktakim 3y agoCould cause a mess. You don't want every member of team to potentially have different repository.
- nikonyrh 3y agoOh interesting, I thought this was going to be a .gitignore file we could use in all projects :D Do you have any thoughts on rather than listing all the file extensions you don't want to track: - https://github.com/tensorflow/tensorflow/blob/master/.gitignore https://github.com/tensorflow/tensorflow/blob/master/.gitign... - https://github.com/redis/redis/blob/unstable/.gitignore https://github.com/redis/redis/blob/unstable/.gitignore - https://github.com/elastic/elasticsearch/blob/main/.gitignore https://github.com/elastic/elasticsearch/blob/main/.gitignor... You'd list the file extensions you want to track? Here is an example for a PHP project: * !/ !.php !.md !.xml !.gitignore !composer.json Or Clojure: * !/ !.clj !*.md target/ !.gitignore If you have exceptions on these rules, you can always force-add the files or add the extension to .gitignore, to configure it not being ignored.