`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 remote remove upstream
删除配置错误的遥控器。然后正确添加就不用了=
:
git remote add upstream [email protected]:abc123/repo.git