为什么上游在我的本地 git 存储库中有一个空白的“=”值,如何删除它?

问题描述 投票:0回答:1
`guest@abc123 abc123 % git remote -v                                                                                     
origin  [email protected]:abc123/repo.git (fetch)
origin  [email protected]:abc123/repo.git (push)
upstream        = (fetch)
upstream        = (push)
upstream        [email protected]:abc123/repo.git  (push)
guest@abc123 abc123 % git pull upstream 
fatal: '=' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.`

你可以看到我得到了

fatal: '=' does not appear to be a git repository
为什么这样设置?如何删除那些空白的上游?

我尝试用谷歌搜索这个,但我没有找到其他具有此默认空白上游设置的人。

当我尝试设置

git remote add upstream ....
时,它保留=空白条目,并且不引用我添加的新git上游远程。

git git-remote
1个回答
0
投票

尝试

git remote remove upstream
删除配置错误的遥控器。然后正确添加就不用了
=
:

git remote add upstream [email protected]:abc123/repo.git
© www.soinside.com 2019 - 2024. All rights reserved.