eclipse intellij can use Github for same project

南笙酒味 提交于 2020-08-25 07:56:11

问题


Is it possible to create one project in GitHub, and two teams who are using different IDE like Eclipse and Intellij can configure project with github and can work simultaneously on same project? I have searched it but not able to find proper solution for it.


回答1:


Yes, you even can version:

  • your .project and .classpath (eclipse)
  • and your .idea folder (intellij)

And both set of IDE-specific files would ignore each others: one could use the Eclipse settings without realizing there is an IntelliJ IDEA project, and vice-versa.




回答2:


Yes this is possible. Most IDE's do create some specific project folders, where the IDE does store Data for your project. As example local build paths and so on.

Git provides the .gitignore file.

In this file you can specify which folders and files git will ignore. As example IDE Based files and folders. Due that every developer can his favourite IDE and no local IDE based files will be in the Git Porject itself.

Most IDE's will update or crate the .gitignore File automatic when they do find an git folder in the project.

What files you have to add to the .gitignore file is differs from IDE to IDE. It also depends on what Programm language your Project is written in.

Here you can find more about the gitignore file:

How do I ignore files in a directory in Git?

http://www.bmchild.com/2012/06/git-ignore-for-java-eclipse-project.html




回答3:


Yes you can, there no limits on IDEs and number of team members, check this for Eclipse and this for IntelliJ



来源:https://stackoverflow.com/questions/27506062/eclipse-intellij-can-use-github-for-same-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!