Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【git】用gitignore在pycharm设置不要提交.idea等文件 #3

Open
Valuebai opened this issue May 1, 2019 · 1 comment
Open
Labels

Comments

@Valuebai
Copy link
Owner

Valuebai commented May 1, 2019

使用git提交代码时,不要将多余的代码提交,类似

  1. 用IDE工具写代码的时候,会默认生成配置文件
  2. 编译的时候会生成本地编译后的target文件
  3. 单位测试后会生成test文件
  4. 本地的log日志文件
    ...
@Valuebai
Copy link
Owner Author

Valuebai commented May 1, 2019

解决方法:
1、在pycharm里面安装.gitignore
2、将不要提交的文件加在该文件里面,类似
`

忽略系统默认生成的文件

.idea/awesome-python-io.iml
.idea/encodings.xml
.idea/markdown-navigator.xml
.idea/misc.xml
.idea/modules.xml
.idea/vcs.xml
.idea/workspace.xml
.idea/markdown-navigator/profiles_settings.xml

忽略测试代码-整个文件夹

/test-ex-do-no-git/

`

@Valuebai Valuebai added the Git label Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant