Git同时push到多个远程仓库

添加第二个远程地址时使用以下命令:
git remote set-url --add origin git@github.com:morethink/programming.git

查看远程分支:git remote -v

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 master

Everything up-to-date
Everything up-to-date
    原文作者:morethink
    原文地址: https://www.cnblogs.com/morethink/p/8700003.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞