Git切换远程仓库地址

方式一:修改远程仓库地址

git remote set-url origin url    更换远程仓库地址,url为新地址。

方式二:先删除远程仓库地址,然后再添加

git remote rm origin    删除现有远程仓库
git remote add origin url   添加新远程仓库

git remote -v 查看远程仓库的地址

说说我的看法