Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does git not have a 'git ignore' command? [closed]

Tags:

git

gitignore

I understand how to setup git to use the .gitignore file to ignore files but was wondering why this has not been a command feature that makes this task slightly less tedious. I will post this question to the git-scm mailing list later but was wondering if anyone here might have a valid reason for the lack of a ...

'git ignore <pattern>'

... feature. I am sure there are other developers that would find this feature useful.

like image 323
Mark Avatar asked Nov 23 '25 07:11

Mark


1 Answers

Probably because it's just as quick to open .gitignore in a text editor or do $ echo <pattern> >> .gitignore.

like image 179
mipadi Avatar answered Nov 24 '25 21:11

mipadi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!