Git 远程仓库设置
特别说明
当前文章内容迁移中,如有问题,请提交 issues 谢谢~~
一. 切换远程仓库地址
1. 本地仓库暂无关联的远程仓库
更换远程仓库地址,URL为新地址ß
git remote set-url origin URL
2. 本地仓库已有关联的远程仓库
1. 删除现有远程仓库
git remote rm origin
2. 关联远程仓库
git remote add origin URL
当前文章内容迁移中,如有问题,请提交 issues 谢谢~~
更换远程仓库地址,URL为新地址ß
git remote set-url origin URL
git remote rm origin
git remote add origin URL