1.查看当前远程仓库
git remote -v2.添加其他远程仓库,如gitee
git remote add gitee https://xxxxxxx
# 其中gitee为远程仓库名,类似于默认的origin3.拉去新的源数据
git fetch gitee4.切换到新的分支
git checkout mybranck5.单独修改
git remote set-url --push origin https://github.com/username/repo.git
git remote set-url --fetch origin https://github.com/username/repo.git
评论 (0)