如何在 Pycharm 中使用 gitignore?
How to use gitignore in Pycharm?
类似的问题 like this one about how to ignore files in a git repo are typically answered by showing which git command to execute on the command line. Even this one,虽然它是 PyCharm 具体的,但也是一样的。
有没有办法通过 PyCharm GUI 管理这个文件?
JetBrains 存储库中有可用的插件来管理它;我使用的其中一个是 .ignore,它使您可以更深入地了解 IDE.
中您实际上忽略了哪些文件
尝试:
- 转到设置
- 转到插件
- 搜索:.ignore
- 安装
- 重启PyCharm
.gitignore
现在应该与 .hgignore
等一起包含在 .ignore
中
在 PyCharm Pro 2019.3 中,我可以通过
- 右键单击我想添加到 gitignore 的文件夹或文件。
- 滚动并点击 Git
- 滚动并点击添加到 .gitignore
如果 gitignore 文件不存在,PyCharm 将创建一个并将其添加到主项目文件夹并将您选择的 folder/file 添加到其中。
在Pycharam专业版安装插件
- Go to the right corner and click on the Settings icon
- Now on Plugins
- Now type the name of the plugin you want to install for example "ignore"
恭喜插件已安装
类似的问题 like this one about how to ignore files in a git repo are typically answered by showing which git command to execute on the command line. Even this one,虽然它是 PyCharm 具体的,但也是一样的。
有没有办法通过 PyCharm GUI 管理这个文件?
JetBrains 存储库中有可用的插件来管理它;我使用的其中一个是 .ignore,它使您可以更深入地了解 IDE.
中您实际上忽略了哪些文件尝试:
- 转到设置
- 转到插件
- 搜索:.ignore
- 安装
- 重启PyCharm
.gitignore
现在应该与 .hgignore
等一起包含在 .ignore
中
在 PyCharm Pro 2019.3 中,我可以通过 - 右键单击我想添加到 gitignore 的文件夹或文件。 - 滚动并点击 Git - 滚动并点击添加到 .gitignore 如果 gitignore 文件不存在,PyCharm 将创建一个并将其添加到主项目文件夹并将您选择的 folder/file 添加到其中。
在Pycharam专业版安装插件
- Go to the right corner and click on the Settings icon
- Now on Plugins
- Now type the name of the plugin you want to install for example "ignore"
恭喜插件已安装