如何从本地存储库中删除远程git服务器

时间:2016-08-31 09:36:07

标签: git

您好我从github.com获取本地git存储库,如何删除github.com删除服务器并保留本地git服务器(即最后2行)

youInside   https://github.com/youInside/rpi-configs (fetch)
youInside   https://github.com/youInside/rpi-configs (push)
origin  https://github.com/sanfx/rpi-configs.git (fetch)
origin  https://github.com/sanfx/rpi-configs.git (push)
pi  git@192.168.1.2:/home/git/rpi-configs (fetch)
pi  git@192.168.1.2:/home/git/rpi-configs (push)

2 个答案:

答案 0 :(得分:1)

git remote remove origin
git remote remove youInside

应该有用。

答案 1 :(得分:0)

列出你的遥控器

  git remote -v

删除远程

  git remote remove origin

Origin应该是远程名称