1.本地git仓库远程地址切换 // 先删除远端地址 git remote remove origin // 新建远端地址 git remote add origin '新远端代码地址' // 从新远端更新代码 git fetch --all 代码仓库迁移成功了,快去试试吧,哈哈哈哈哈哈哈哈哈哈