Visual Studio git-push to two repositories

git, tfs, visual-studio-2013

Solution

You can try and define a remote named "all", as in "git push to multiple repositories simultaneously", and see how Visual Studio 2013 runs a push to that remote.

The idea is to include all the remote url you want to push to in the remote definition:

[remote "all"]
    url=/url/repo1
    url=/url/repo2

You can do that by directly editing your `.git/config` file within your local repo.

Problem

I want to start a new project (VS 2013) and I want to work with a TFS 2013 Git repo for source control, bug tracking, team room and so on. But I have the requirement from my management to push the source code also to a different git repo (No TFS). Do you have an idea how to push my changes automaticly to the TFS Git Project and the second Git repo? Kind regards

Original source