SharpNoiZy
SharpNoiZy

Reputation: 1119

Visual Studio git-push to two repositories

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

Upvotes: 5

Views: 6220

Answers (1)

VonC
VonC

Reputation: 1323135

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.

Upvotes: 4

Related Questions