Create an all
remote with several repo URLs to its name:
git remote add all origin-host:path/proj.git
git remote set-url --add all nodester-host:path/proj.git
git remote set-url --add all duostack-host:path/proj.git
Then just git push all --all
.
This is how it looks in .git/config
:
[remote "all"]
url = origin-host:path/proj.git
url = nodester-host:path/proj.git
url = duostack-host:path/proj.git
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…