环境:
MacBook Pro 15
jdk8
IntelliJ IDEA
问题:大小公司都有内部的代码仓库管理系统,比如GitLab、GitHub等;远程仓库应该上传哪些文件?
分享例子:(列出lz的.gitignore文件内容,java)
/target/
/.classpath
/.project
/.settings/
/bin/
/*.iml
/*/logs/
/*/target/
/*/.classpath
/*/.project
/*/.settings/
/*/bin/
/*/*.iml%
引用:什么是.idea文件夹?
当你使用JetBrains出品的IDE(Integrated Development Enviroment,集成开发环境)时,比如PyCharm、WebStorm或IntelliJ IDEA等,它们会在创建项目后在项目根目录创建一个.idea文件夹,其中保存了项目特定的配置文件。
至于为什么命名为.idea,则是因为IntelliJ IDEA是JetBrains最早推出的IDE(JetBrains一开始叫IntelliJ),因此使用IDEA作为配置文件夹的名称。
按照这个SO回答里最高票答案的猜测,或许IntelliJ IDEA这个名字的含义是这样组成的:
Intelli ===> Intelligent
J ===> Java
Idea ===>IDE that is Advanced or Idea just means idea( I have a good idea …like this ) …
参考:https://juejin.im/post/5b2bbaf4e51d4558cf6e8074
https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore