0

如何使用 GIT witout .pyc 文件添加所有目录?

git add catalog_name
git commit -m "Update"
git push

添加什么和在哪里?

4

1 回答 1

3

使用 .gitignore 文件。将“* .pyc”添加到其中。该文件位于您的仓库的根目录中,即您所做的地方git init

这是一个用于 python 项目的好 .gitignore 文件,包含在 git commit 中忽略的通用扩展名。

https://github.com/github/gitignore/blob/master/Python.gitignore

于 2013-02-20T18:12:34.200 回答