gitignore binary files that have no extension

前端 未结 18 1256
没有蜡笔的小新
没有蜡笔的小新 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条回答
  •  旧时难觅i
    2020-11-28 02:21

    If you follow these commands on your .gitignore file and files still seems to appear you may want to try:

    git rm --cached FILENAME
    

    After that, add your .gitignore, commit and push. Took me 40 minutes to understand that, hope this helps to newbies like me

提交回复
热议问题