一个 Git 项目配置多个仓库
废话不多直接x
普通添加仓库
scriptgit remote add origin <git@git.com>
添加多个仓库
scriptgit 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
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 kshao-blog-前端知识记录!
评论