如何修改远程仓库的URL

$ git remote set-url origin [新URL]

Command
git
Description
修改现有远程仓库(如 origin)的连接URL。用法:git remote set-url origin [新URL]ளி。
Deep Dive
在仓库迁移或从 HTTPS 切换到 SSH 连接时非常有用。可以使用 `git remote -v` 查看当前设置。