c++ - How to Add Linux Executable Files to .gitignore?
How do you add Linux executable files to .gitignore without giving them an explicit extension and without placing them in a specific or /bin directory? Most are named the same as the C file from which they were compiled without the .c extension.

Can you ignore all, but source code files?
For example:
*
!*.c
!Makefile

