Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open part of Github repository as IntelliJ project

I have large Github repository with individual projects uploaded as subdirectories. Those subdirectories are IntelliJ IDEA projects that I want to work on, but the problem is that I can only clone the whole repository. Instead, I want to clone whole repository, open individual subdirectories as IntelliJ projects and make commits visible to entire repository. Can it be done, or do I have to destroy the repository, create directory and make every project a separate repository in subdirectories?

I have something like:

- main_directory (repository):
  - lab1 (first project)
  - lab2 (second project)

I want to clone whole repository and commit to entire repository, but edit individual projects with IntelliJ. It can be done with Github Desktop, but I want to do it from IntelliJ.

like image 349
qalis Avatar asked Jan 25 '26 00:01

qalis


1 Answers

You can map any directory to the version control in IntelliJ IDEA VCS Settings.

So you can open any project like lab1 and associate main_directory with the version control.

like image 129
CrazyCoder Avatar answered Jan 27 '26 13:01

CrazyCoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!