Git 远程仓库设置

Git 远程仓库设置

  • 原文地址:
  • 原文作者:
  • 本文永久链接:
特别说明

当前文章内容迁移中,如有问题,请提交 issues 谢谢~~

一. 切换远程仓库地址

1. 本地仓库暂无关联的远程仓库

更换远程仓库地址,URL为新地址ß

git remote set-url origin URL

2. 本地仓库已有关联的远程仓库

1. 删除现有远程仓库

git remote rm origin

2. 关联远程仓库

git remote add origin URL
Prev:
文章目录 - 理论 - 中间件
Next:
java-clean-code-警告压制
Contents of this article
Contents of this article