添加第二個遠程地址時使用如下命令:
git remote set-url --add origin git@github.com:morethink/programming.git
git
查看遠程分支:git remote -v
github
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
hexo
Everything up-to-date Everything up-to-date