gitignore - Git: Add only a specific set of wildcards and ignore everything else -


i'm working on project , want ignore not .cpp, .h, .cxx , .hpp files example. how can that? tried adding following lines .gitignore file still adds libs , png files , other junk:

!*.cpp !*.h !*.hpp !*.hxx !*.cxx !*.c 

how can ignore these extensions?

thanks!

you can add

*.* 

at beginning of .gitignore file.

that ignore every file except ones defined below '!'.

you can find lot of useful .gitignore file on github or on gitignore.io


Comments

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -