方法一:删除后重新添加
git remote rm origin // origin为远程仓库在本地的别名,下同 git remote add origin <url>
方法二:直接修改
git remote origin set-url <url>