The file named as "project" is resultant of a build which produces a binary file with the same name as the container directory:
project/
src/
main.c
project <-- binary file, same name as container directory
Being more general, how to ignore a file that have the same name as their container directory? Keep in mind that if "project" directory is renamed the resultant built file will change name too.