gitignore file without extension

C++
*
!/**/
!*.*

Source

Also in C++: