同时把代码提交到两个git代码托管的服务器上

1
2
3
4
git remote add origin xxx 
git remote add another yyy
git push origin master
git push another master

或者

1
vim .git/config

1
2
3
[remote "origin"] 
url = ssh://server.example.org/home/ams/website.git
url = ssh://other.exaple.org/home/foo/website.git
文章目录
|