Filip
Filip

Reputation: 83

How do i manage workspace.xml in Intellij with git

I started a new project with my team. We are using Intellij + Java + git for developing the software.

The problem I have is that I made a .gitignore file for git auto-generated by gitignore.io. The file ignores the workspace.xml and the Project.iml files in my Project, which is good, because they cause merging conflicts later.

The thing is when I push the project on bitbucket.org and my collegues want to clone it so they can work on it, they have no workspace.xml. So Intellij can't open it up as a project.

Is there any way they can generate the missing Files or any Import option to make it a project again?

Upvotes: 6

Views: 8046

Answers (1)

yole
yole

Reputation: 97138

workspace.xml is not required for opening an IntelliJ IDEA project. On the other hand, the .iml file is a required part of the project and needs to be shared in the version control system if you want to share your project with colleagues.

Upvotes: 5

Related Questions