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
Post a Comment