Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple git repositories #12564

Closed
ghost opened this issue Sep 24, 2016 · 9 comments
Closed

Support multiple git repositories #12564

ghost opened this issue Sep 24, 2016 · 9 comments
Labels
feature-request Request for new features or functionality git GIT issues
Milestone

Comments

@ghost
Copy link

ghost commented Sep 24, 2016

It seems like its not possible to have Git support if the actual repo lives in a subfolder of the project.

My current Folder structure look like this:

Project/
  GitRepositoryWithTheCode/
  DesignerStuff/ (images, etc)
  Documentation/ 
  ect../

In this setup, the GitRepo is not tracked, so sadly I cannot use the benefits of this feature :(

Did I missed some configuration, where I could map the git repo to the GitFolder?

@chrmarti chrmarti added feature-request Request for new features or functionality git GIT issues labels Sep 26, 2016
@joaomoreno
Copy link
Member

Yes, unfortunately this doesn't work. You need to open Code at GitRepositoryWithTheCode.

@joaomoreno joaomoreno added the *as-designed Described behavior is as designed label Sep 27, 2016
@aalexgabi
Copy link

@joaomoreno It seems that nobody cares about this.

Is there a solid reason for which the design should not change to meet all users' needs? Why not handle git repositories from sub-folders?

In my case I have a root folder called Projects in which I have multiple git repositories. There are too many to open them separately in different windows and switching between them is pretty annoying. I'm really dissapointed seeing that this hasn't been fixed yet and voting is closed on uservoice.com: https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/9483534-recognize-git-repositories-in-nested-folders

@joaomoreno joaomoreno changed the title Git Repository in a Sub-Folder Support multiple git repositories Nov 9, 2016
@joaomoreno joaomoreno reopened this Nov 9, 2016
@joaomoreno joaomoreno removed the *as-designed Described behavior is as designed label Nov 9, 2016
@joaomoreno joaomoreno removed their assignment Nov 9, 2016
@joaomoreno joaomoreno added this to the Backlog milestone Nov 9, 2016
@jlk
Copy link

jlk commented Jan 24, 2017

Seems like a duplicate of #396...

@aalexgabi
Copy link

@jlk #396 may be related but there are two different issues:

  1. Cannot open multiple folders (/tmp and ~/Projects for example)
  2. I cannot manipulate different Git repositories somewhere inside my opened folder. Notice that the Git repositories may be at different levels from the opened folder. Example:
Projects/
  project1/
    .git
    lib/
      .git
      lib.c
    main.c
    a.out
  project2/
    component1/
      .git
      file0
    component2/
      .git
      file1

@jlk
Copy link

jlk commented Jan 24, 2017

@aalexgabi Yep - fair point. Seems like #2 is a subset of #1, but I see now that they're not full duplicates of each other.

@mreschke
Copy link

mreschke commented Apr 6, 2017

I too requires this feature. All my code is modules or "microservices" inside a company folder. I have 40+ projects, not practical to have 40 code windows open one to each individual folder. This is why I keep going back to sublime, because it recognizes the git repo of the FILE you are currently working in, no of the root of your "project".

@kennasoft
Copy link

I am also facing the same problem in VS Code. Are there any plans by MSFT to address this? Support for multiple folders without having to pack your projects into the same root folder, could possibly fix this I guess?

@dicroce
Copy link

dicroce commented Apr 21, 2017

Me too. I've never used the GIT features of VS Code because my projects all consist of multiple repos.

@joaomoreno
Copy link
Member

Closing as a duplicate of #396. Supporting multiple workspaces will enable working with multiple Git repositories.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality git GIT issues
Projects
None yet
Development

No branches or pull requests

7 participants