Usually we add new files like below:
git add .
That will add all files. But I'd like to add only the specified type of files, e.g. *.c, *.cpp, *.h... So I will do it like this:
git add "*.c"
git add "*.h"
git add "*.cpp"
But this seems not convenient, do you have better solution?