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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -