如何在git中更改远程获取URL

问题描述 投票:0回答:1

我的git远程仓库如下:

$ git remote -v
origin  https://github.com/jiangxiaoqiang/dolphin-scripts.git (fetch)
origin  https://github.com/jiangxiaoqiang/dolphin-scripts.git (push)
origin  https://gitee.com/jiangxiaoqiang/dolphin-scripts.git (push)

现在默认情况下我想从gitee中获取,如何将获取URL转换为gitee?

git
1个回答
0
投票

尝试

git remote add origin https://gitee.com/jiangxiaoqiang/dolphin-scripts.git --mirror=fetchde here
© www.soinside.com 2019 - 2024. All rights reserved.