Git: Exclude a file with git clean

前端 未结 5 1051
灰色年华
灰色年华 2020-12-14 14:45

i\'m working on a big python project, and i\'m really sick if .pyc and *~ files. I\'d like to remove them. I\'ve seen that the -X flag of git clean would remove

5条回答
  •  死守一世寂寞
    2020-12-14 15:24

    git clean -X -n --exclude="!local_settings.py"
    

    works. I discovered this when I googled and got this page.

提交回复
热议问题