更换git远程仓库地址

通过命令直接修改远程仓库地址

git remote 查看所有远程仓库
git remote xxx 查看指定远程仓库地址
git remote set-url origin 你新的远程仓库地址


先删除在添加你的远程仓库

git remote rm origin
git remote add origin 你的新远程仓库地址
posted @ 2020-08-23 20:23  过程是风景  阅读(1626)  评论(0编辑  收藏  举报