举例: 为项目 test-admin 切换git仓库
-- 进入项目目录
cd test-admin
--查看本地所有的远程分支
git remote
-- 删除现有的远程分支
git remote rm <需要删除的远程分支的名称>
-- 新增远程分支
git remote add test http://xxxx.git
-- 同步git仓库的信息
git fetch test
-- 同步developer代码
git pull test developer
git 切换仓库地址
最新推荐文章于 2024-03-15 15:03:16 发布