书写代码时,有时候需要维护多个仓库,这时候就面对了这个需求,解决方法如下:

$ git remote add github  ******
$ git remote add mayun  ******

书写完成上边代码后,在输入

$ git remote -v

terminal中打印

mayun	https://gitee.com/***y.git (fetch)
mayun	https://gitee.com/***.git (push)
github	https://github.com/***.git (fetch)
github	https://github.com/*** (push)

此即为完成,打开路径下名为config的文件,出现信息:
为单个项目添加多个远程仓库(Git操作)

   
   
   

友情链接:

技术博客        简书主页

相关文章:

  • 2022-01-02
  • 2022-12-23
  • 2021-07-11
  • 2021-06-22
  • 2021-07-17
  • 2022-12-23
  • 2021-12-09
  • 2021-07-04
猜你喜欢
  • 2021-09-29
  • 2022-01-06
  • 2022-12-23
  • 2021-04-25
  • 2021-05-31
  • 2021-08-05
  • 2022-12-23
相关资源
相似解决方案