【问题标题】:I am creating a program in python what files should i add to gitignore? [duplicate]我正在 python 中创建一个程序,我应该将哪些文件添加到 gitignore? [复制]
【发布时间】:2019-08-12 02:57:33
【问题描述】:

我目前正在用 python 编写一个程序,但是在我完全开始之前我设置了我的 git 存储库,所以我想知道在我推送到 Github 之前应该添加到 gitignore 的文件是什么。 在以前的项目中没有添加正确的文件给我带来了很多问题,因此,我试图避免同样的错误

【问题讨论】:

    标签: python git github gitignore git-bash


    【解决方案1】:

    在 github 上有一个用于各种 gitignore 的存储库。

    Python.gitignore

    【讨论】:

      【解决方案2】:

      您可以查看这个不错的存储库:https://github.com/github/gitignore

      它是许多语言和框架的 gitignore 模板列表。

      这是python的一个:https://github.com/github/gitignore/blob/master/Python.gitignore

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-10-29
        • 1970-01-01
        • 2014-07-08
        • 2023-01-29
        • 2018-07-09
        • 2019-05-18
        • 2018-11-24
        • 2020-12-10
        相关资源
        最近更新 更多