方法有三种:
-
- 修改命令
git remote set-url origin [url]
- 先删后加
git remote rm origin
git remote add origin [url]
- 直接修改.git/config文件
vim .git/config
标签:origin,git,remote,修改,仓库,url,config,远程
From: https://www.cnblogs.com/Sultan-ST/p/16866655.html