How to make git ignore files without . ("dot") character -


for example, have these files:

sorting generatedata tmp.c tmp.txt 

i want ignore 2 files "sorting" , "generatedata".

i tried adding "[^.]+", "[^.]" .gitignore file not work.

with little work can effect particular repo.

if put

* !*.* 

at top of .gitignore, have effect of accepting , files dot. want bypasses lower-precedence files.

so if put above @ top of .git/info/exclude it'll have effect of ignoring without dot and also shutting off personal excludes (in ~/.config/git/ignore default). can kludge around enough, it'll never pretty.


Comments