Skip to content

Conversation

@thyrlian
Copy link

No description provided.

/local.properties
/.idea/workspace.xml
/.idea/libraries
.idea/workspace.xml
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took from https://www.gitignore.io, using patterns Android and AndroidStudio. Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么去掉 /.idea/libraries

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在呢,请忘下看 :)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我感觉整个.idea都是可以不加入vcs的,比如:

  • 不同用户可能有不同的词典:disc.xml
  • 不同用户的jdk版本等可能不同: misc.xml
  • fork/clone下来的项目名称可能会和原项目略有区别,导致module稍有不同:modules.xml
  • 此外还可能产生不同的runConfigurations.xml等。

因此我习惯ignore掉整个./idea目录,仅为个人看法,欢迎探讨 😃

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./idea是IDE配置文件啊,如果跟项目本身无关应该不必引入吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants