--- title: 同时把代码提交到两个git代码托管的服务器上 english_title: top: 0 date: 2017-08-02 19:35:30 categories: tags: - git fancybox: comments: true permalink: description: --- ``` git remote add origin xxx git remote add another yyy git push origin master git push another master ``` 或者 ``` vim .git/config ``` ``` [remote "origin"] url = ssh://server.example.org/home/ams/website.git url = ssh://other.exaple.org/home/foo/website.git ```