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

前端 未结 7 998
执笔经年
执笔经年 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:42

    add

    *.pyc
    

    in .gitignore file

    and run this

    git config --global core.excludesfile .gitignore
    

    which worked for me

    0 讨论(0)
提交回复
热议问题