我有一个Git
大约有4个分支的存储库。他们戴上了GitHub
。我最近创建了一个新分支,名为“ demo2Full”。自创建以来,我无法推送到名为“ bugfixes”的早期分支。这是我创建新分支所要做的:
git remote add demo2Full git@github-user:user/project_demo2Full.git
git branch demo2Full
&git checkout demo2Full
。之后,我切换回“错误修正”,git checkout bugfixes
没有任何问题。
现在,当我执行git push origin bugfixes
以下操作时,出现以下错误:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我浏览了许多链接,包括GitHub上的这个链接。该SSH
部分正常工作,我还检查了带有git remote -v
和的远程配置文件,.git/config
发现链接中没有拼写错误等。
我要去哪里错了?
编辑
此外,其在配置文件中像每个分支的单独条目:
git@github-userName:userName/projectName_branchName.git
是正确的?
该.git/config
文件具有“不正确”的条目。
原产地列为:url = git@github-userName:userName
。
将其更改为:url = git@github-userName:userName/projectName.git
可纠正错误。
我仍然不清楚这种变化是如何发生的。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句