找到项目目录下的.git文件夹,打开config文件,修改相关代码:
原始代码:
[remote "origin"]
url = https://gitee.com/ialley-workshop-open/uni-halo.git
fetch = +refs/heads/*:refs/remotes/origin/*
修改后的代码:
[remote "github"]
url = https://github.com/ialley-workshop-open/uni-halo.git
fetch = +refs/heads/*:refs/remotes/github/*
[remote "gitee"]
url = https://gitee.com/ialley-workshop-open/uni-halo.git
fetch = +refs/heads/*:refs/remotes/gitee/*