废话不多直接x

普通添加仓库

script
git remote add origin <git@git.com>

添加多个仓库

script
git remote add <仓库名称> <git@git.com> # 例子 git remote add newRepository https://github.com/xxx/xxx # 查询 git remote -v # newRepository https://github.com/xxx/newRepository.git (fetch) # newRepository https://github.com/xxx/newRepository.git (push) # origin http://github.com/xxx/xxx (fetch) # origin http://github.com/xxx/xxx (push) # push git push -u newRepository master