Settings

Theme

One .gitignore to rule them all

blog.enamya.me

5 points by enamya 2 years ago · 2 comments

Reader

nikonyrh 2 years ago

Oh 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/.gitign... - https://github.com/redis/redis/blob/unstable/.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.

mooktakim 2 years ago

Could cause a mess. You don't want every member of team to potentially have different repository.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection