How can binary files be ignored in git using the .gitignore file?
Example:
$ g++ hello.c -o hello
The
Add something like
*.o
in the .gitignore file and place it at the root of your repo ( or you can place in any sub directory you want - it will apply from that level on ) and check it in.
Edit:
For binaries with no extension, you are better off placing them in bin/ or some other folder. Afterall there is no ignore based on content-type.
You can try
*
!*.*
but that is not foolproof.