# Git 如何切换到不同远程仓库

**URL:** <https://www.isharkfly.com/t/git/322>\
**Category:** 软件技术\
**Created:** [July 31, 2020, 9:01pm UTC](https://www.isharkfly.com/t/git/322 "2020-07-31T21:01:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [July 31, 2020, 9:01pm UTC](https://www.isharkfly.com/t/git/322/1 "2020-07-31T21:01:07Z")

</div>

在很多时候，我们希望将 Git 切换到不同的远程仓库地址。

例如我们有一个项目 USRealEstate，当前使用的是微信的 Git，我们希望切换到 GitHub 上。

如何进行切换？

## 尝试使用下面的方法

首先在 GitHub 中创建一个空的仓库 USRealEstate。

然后可以使用 TortoiseGit 配置远程仓库。

![github-remote-01](https://www.isharkfly.com/images/transparent.png)

你需要先配置远程仓库地址，然后单击保存。

在这里你可用选择 NO，不要从远程仓库中进行下载。

![github-remote-02](https://www.isharkfly.com/images/transparent.png)

右键选择，将本地内容推送到远程仓库中。

![github-remote-03](https://www.isharkfly.com/images/transparent.png)

如果没有问题，你将会看到 PUSH 成功的界面。

然后你可用到 GitHub 中查看你的内容有没有 PUSH 成功。

![github-remote-04](https://www.isharkfly.com/images/transparent.png)

## 检查状况

到 GitHub 中查看，可用看到已经 PUSH 成功了。

![github-remote-05](https://www.isharkfly.com/images/transparent.png)
