

best way to synchronize two remote repositories in GIT
source link: https://www.codesd.com/item/best-way-to-synchronize-two-remote-repositories-in-git.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

best way to synchronize two remote repositories in GIT
We have one internal remote repository in stash and one repository in github for our third party consultants. We try to synch the repository in "Atlassian Stash" to the repository in GitHub everyday. The procedure I follow is to change the remote to github using set url and pull from github (the branch I desire) to my local directory and then I change the remote again to "stash" and push the changes there from my local directory. Is this a good approach or there is a better way to do it?
As @g19fanatic says, no need to keep changing the remote URL's. Just
git pull <name of stash remote>
git push <name of github remote>
You need two separate remotes for this; add the second one if needed with git remote add
Related Articles
What is the best way to load multiple remote RSS feeds?
How to synchronize two remote Git repositories?
Best way to join two large datasets in Pandas
The best way to compare two Dictionary & lt; T & gt; For Equality
Best way to synchronize iPhone time with the server
What is the best way to return two lists in C #?
What is the best way to synchronize QTableView and Database after inserting the record?
What is the best way to synchronize XmlWriter access to a file to prevent IOExceptions?
Android: What is the easiest way to synchronize a remote database in the background?
What is the best way to update two tables at the same time in SQL?
What is the best way to synchronize data between decoupled systems?
Best way to synchronize SQL 2000 and 2005 databases
Perl best way to compare two lists of dates & amp; Numbers
Java - best way to compare two lists & lt; List & lt; String & gt; & gt;
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK