1.切换远程仓库
一:直接修改仓库地址
git remote set-url origin 新的远程仓库地址
二:先删除后添加
1 :删除 git remote rm origin
2:添加 git remote add origin 新的远程仓库地址
2.查看远程仓库地址
git remote -v
git remote set-url origin 新的远程仓库地址
1 :删除 git remote rm origin
2:添加 git remote add origin 新的远程仓库地址
git remote -v