gitignore - make git commit all files of specific type except for a couple -


how can make git commit files of 1 type, *.el except .el files named. so, have following, *.el seems overriding .el files name specifically,

* ignoreme.el ignoremetoo.el  !.gitignore !*.el 

i have tried putting files ignore after *.el well, no dice.

edit there many other files/directories need ignored , reason *

each line in gitignore file specifies pattern. when deciding whether ignore path, git checks gitignore patterns multiple sources, following order of precedence, highest lowest (within 1 level of precedence, the last matching pattern decides outcome):

so put wildcards front , exceptions later.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -