【发布时间】:2019-10-27 12:00:30
【问题描述】:
我正在使用git remote -v 来查看我的远程存储库。
myname@DESKTOP-0SD47KB MINGW64 ~/Desktop/maevenNetbeans/MyProject(master)
$ git remote -v
origin https://github.com/Myname/MyProject.git (fetch)
origin https://github.com/Myname/MyProject.git (push)
origin2 https://github.com/Myname/MyProject(fetch)
origin2 https://github.com/Myname/MyProject(push)
当我创建存储库时,我只链接了一个远程存储库。
我的问题是为什么我得到两个链接的远程存储库?
在这个上下文中 fetch 和 push 关键字的含义是什么。我知道推送是为了发送,获取是为了检索。
origin2 是本地存储库吗?
【问题讨论】:
-
我认为您错误地添加了origin2。你可以做'git remote remove origin2'
标签: git branch git-remote