Here is the folders:
--dir
----subdir1
------a.h
------a.cpp
----subdir2
------b.h
------b.cpp
----.gitignore
Please tell me how to track all but only .h, .cpp, .xml
files in dir and all its subdirectories. Here is my .gitignore file:
*
!.gitignore
!*.cpp
!*.xml
!*.h
!*.c