I've created a C++ file and it runs perfectly. But the problem comes when I push my code to GitHub. There is an executable file as the result of building my C++ program, and it's being added to source control. I don't want that.
In Windows, executables have the file extension .exe
and I can write *.exe
in the .gitignore
. But in Ubuntu, executables don't need an extension. How do I make Git ignore that?