Git同時push到多個遠程倉庫

添加第二個遠程地址時使用如下命令:
git remote set-url --add origin git@github.com:morethink/programming.gitgit

查看遠程分支:git remote -vgithub

origin  git@git.coding.net:morethink/programming.git (fetch)
origin  git@git.coding.net:morethink/programming.git (push)
origin  hexo@MyHost2:/var/repo/gitbook.git (push)

也能夠同時 push 到多個遠程地址:git push origin masterhexo

Everything up-to-date
Everything up-to-date
相關文章
相關標籤/搜索