How can binary files be ignored in git using the .gitignore file?
git
.gitignore
Example:
$ g++ hello.c -o hello
The
You may try in your .gitignore:
* !*.c
This approach has many disadvantages, but it's acceptable for small projects.