I suggest you ...

Add git support for subtree add, push and pull

Git subtrees are a popular way of including code from a remote repo into a project repo. They have advantages over git submodules.

Visual Studio's git features need to support adding and managing push, pull and merges from subtrees.

The only way to use git subtrees presently is from the command line :

e.g.

Add a subtree (as a remote)
git remote add shared ssh://git@bitbucket.org/xyz/shared.git
git subtree add --prefix=path/to/code --squash shared master

Pulling upstream changes
git subtree pull --prefix=path/to/code --squash shared master

Pushing changes to the upstream repository
git subtree push --prefix=path/to/code --squash shared master

211 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Johno Scott shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base