> For the complete documentation index, see [llms.txt](https://close.gitbook.io/yun-wei-bi-ji/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://close.gitbook.io/yun-wei-bi-ji/centos/git-jiao-cheng/git-xiu-gai-yuan-cheng-cang-ku-di-zhi.md).

# Git修改远程仓库地址

### Git修改远程仓库地址

方法有三种：

1. 1.修改命令

   ```
   git remote origin set-url [url]
   ```
2. 先删后加

   ```
   git remote rm origingit remote add origin [url]
   ```
3. 直接修改config文件
   * git文件夹，找到config，编辑，把就的项目地址替换成新的。

<br>
