Creating a module under a different VCS repository

Hello,

I have an established open-source project that I am working on in IntelliJ IDEA. It resides in a public GitHub repository. I wish to develop a proprietary component, which will therefore need to go in a private repository.

I read that IntelliJ IDEA has support for multiple roots:
http://blog.jetbrains.com/idea/2012/08/git-branches-for-multi-root-projects/

These directions show how to navigate within a multi-root project. It was not clear to me, however, how to create such a project in the first place.

My best guess was to go on GitHub, create a new repository, and then attempt to import it into IntelliJ IDEA as a module for my existing project. I went to the VCS menu and chose "Check out from Version Control" --> "GitHub." I put in the information for the new repo, and it asked me if I wanted to open a new project. I said no, and evidently nothing happened as a result.

I also tried creating a new module and then seeing if I could associate it with a GitHub repository on its own, but it was entirely non-obvious how to do so.

I am using the IntelliJ IDEA 13.1.1 Ultimate. Could someone please point me in the right direction? Step by step directions would be particularly welcome.

Thank you in advance for your help.

Best wishes,
David

PS: I'm not sure if it matters, but the new module will be static XML. I am using the "static web" mode for it.

2 comments

Hello David,

After checkout you could use "File - Import module" and select recently created directory.
In "Settings (Preferences) - Version Control" you should see your roots with associated VCS.   

0

Okay, I'l try it. Thank you!     


0

Please sign in to leave a comment.