gitignore binary files that have no extension

How can binary files be ignored in git using the .gitignore file?

Example:

$ g++ hello.c -o hello

The “hello” file is a binary file. Can git ignore this file ?

18 Answers
18

Leave a Comment