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 :


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
Sign in
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Johno Scott shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Password icon
Signed in as (Sign out)

Feedback and Knowledge Base