How to connect github with visual studio code?

I recently started using Visual Studio Code ( https://code.visualstudio.com/ ). Began to love him. But I have some doubts about how to connect to Visual Studio Code for github.

I have one folder that contains 15 subfolders and each subfolder associated with the git repository. When I open a single / git repo subfolder using Visual Studio code, git operations work fine. But I want to open the root folder (containing 15 subfolders) using Visual Studio code, because I work in all repositories at the same time. The root folder is not tied to git, its just a folder on my local that contains all the repositories.

Can this be done?

+5
source share
2 answers

Unfortunately, VS Code git functions only work if you open a direct folder with initialized git inside. Otherwise, he will not recognize him. At least this is true for V 1.5.2

+1
source

Your project structure is messy. Even with other IDEs / editors and // tools, it will be difficult for you to manage all this (not the number of subfolders except the structure itself). Check out the git submodules to learn how to manage multiple git repositories as one, although I seriously doubt that VS Code supports this, so you'll probably end up (at least you can have a built-in terminal in VS Code) or some graphic tool outside the editor. Still worth doing!

0
source

All Articles