Deepak Kumar Padhy
Deepak Kumar Padhy

Reputation: 4388

How to connect github with visual studio code?

I have started using Visual Studio Code (https://code.visualstudio.com/) recently . Started loving it. But I have some doubts regarding how to connect to Visual Studio Code to github.

I have one folder which contains 15 sub-folders and each sub-folder connected to a git repo. When I open a single sub-folder/git repo using Visual Studio Code, git operations working perfectly. But I want to open the root folder(containing 15 sub-folders) using Visual studio code, because i simultaneously work in all the repos. The root folder is not attached to git, its just a folder on my local which contains all the repos.

Is it possible to do?

Upvotes: 5

Views: 2383

Answers (2)

rbaleksandar
rbaleksandar

Reputation: 9701

Your project structure is messy omho. Even with other IDEs/editors and/tools you will have difficulties managing all that (not the number of subfolders but the structure itself). Check git submodules to see how to manage multiple git repos as one although I seriously doubt that VS Code supports this so you will probably end up using the good old terminal (at least you can have an embedded terminal in VS Code) or some graphical tool outside the editor. Still worth doing!

Upvotes: 0

Kunso Solutions
Kunso Solutions

Reputation: 7630

Unfortunately VS Code git features are working only if you open directly folder with initialized git inside. Otherwise it will not recognize it. At least this is true for V 1.5.2

Upvotes: 1

Related Questions