gitignore binary files that have no extension

前端 未结 18 1192
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 02:14

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

Example:

$ g++ hello.c -o hello

The

18条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 02:37

    Old thread, but still relevant. I changed the makefile so the resulting binary file after linking has the name [filname].bin instead of only [filname]. Then I added *.bin files in the gitignore.
    This routine fulfill my needs.

提交回复
热议问题