Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to manage more than one git repository in VS code

I have to work with a directory like this:

ProjectRoot
|---- SubDirectory1
|---- SubDirectory2(Git Repository1)
|---- SubDirectory3(Git Repository2)
|---- ...
|---- Files

But I found that the embedded git function of VS-code can not recognize those sub-directories managed by git.

How to solve this problem? Is there a extension about it?

like image 841
Brand Shaw Avatar asked Mar 25 '17 04:03

Brand Shaw


1 Answers

Alternatively you can use multi-root workspaces. Rather than opening the root directory of your project you can open the first separate git repo then add others using File->Add Folder to Workspace. Once you've added them all you can do File->Save Workspace As to save your new workspace configuration.

like image 111
parsley72 Avatar answered Oct 22 '22 23:10

parsley72