修改远程仓库的URL

修改远程仓库的URL。

  • 使用 git remote set-url origin <url> 命令将远程仓库的URL修改为 <url>
git remote set-url origin <url>

# 示例
git remote set-url origin https://github.com/30-seconds/30-seconds-of-code
# 远程URL现在为 "https://github.com/30-seconds/30-seconds-of-code"