Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 673
SharpNoiZy Avatar asked Oct 02 '22 09:10

SharpNoiZy


1 Answers

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.

like image 79
VonC Avatar answered Oct 19 '22 22:10

VonC