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://firstname.lastname@example.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
This would be great
Nick Choi commented
This would be great, add it into the Sync tab of Team Explorer