git, don't show me *.pyc in the list of untracked files!

前端 未结 7 1058
执笔经年
执笔经年 2020-12-07 10:55

When doing:

>git status

It shows a big list of .pyc files under \"untracked files\". I don\'t want it to show these, as it adds noise.<

7条回答
  •  盖世英雄少女心
    2020-12-07 11:35

    git config --global core.excludesfile "c:\program files\whatever\global_ignore.txt"
    

    Then, add

    *.foo
    

    to that file.

提交回复
热议问题