方法1

git remote set-url origin <url>

方法2

git remote rm origin
git remote add origin [url]

方法三

直接修改config文件