pycharm现在提供了git ignore,很方便

从这里下载扩展

https://plugins.jetbrains.com/plugin/7495--ignore

放到pycharm根目录\plugins目录下,直接拷贝过去就可以了

然后在project中,最上一层上点击右键,add,ignore,gitignore就可以了

编辑完成后要生效git ignore

在repo的根目录下运行:
git rm -r --cached .
git add .
之后可以进行提交:
git commit -m "fixed untracked files"

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2021-12-21
  • 2021-11-26
  • 2021-10-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2021-10-31
  • 2021-07-12
  • 2021-08-08
相关资源
相似解决方案