Git:推送时遇到问题:错误:src refspec Remotes/origin/iteration1 匹配多个
我在 Windows XP
上使用 TortoiseGit
。我已经提交了所有更改,现在我正在尝试将它们推送到远程存储库的分支。远程存储库分支名为“remotes/origin/iteration1”。但是,当我尝试通过右键单击根目录进行推送时,选择“TortoiseGit”,然后选择“Push”。我在以下屏幕上输入这些值:
Branch
Local: remotes/origin/iteration1
Remote: iteration1
Destination:
Remote: iteration1
这是执行此操作时出现的错误。我如何推动我的改变?
git.exe Push --progress“origin”remotes/origin/iteration1:iteration1
错误:src refspec remotes/origin/iteration1 匹配多个。 错误:无法将一些引用推送到“ssh://git@mycogit/zzz_pplus.git”
I'm using TortoiseGit
on Windows XP
. I've commited all my changes and now I'm trying to push them to a branch of the remote repository. The remote repository branch is named "remotes/origin/iteration1". However, when I try and push by right clicking within the root directory, selecting "TortoiseGit", then "Push". I enter these values on the following screen:
Branch
Local: remotes/origin/iteration1
Remote: iteration1
Destination:
Remote: iteration1
Here is the error I get when I do this. How do I push my changes?
git.exe push --progress "origin" remotes/origin/iteration1:iteration1
error: src refspec remotes/origin/iteration1 matches more than one.
error: failed to push some refs to 'ssh://git@mycogit/zzz_pplus.git'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不熟悉 tortoisegit 但
remotes/origin/iteration1
因为源肯定是错误的,因为它是一个远程分支。如果您的本地分支名为iteration1
,请在该字段中输入该分支。您要执行的实际 git 注释是 git push origin iteration1:iteration1
I'm not familiar with tortoisegit but
remotes/origin/iteration1
as the source is certainly wrong since it's a remote branch. If your local branch is namediteration1
, enter this in that field.The actual git comment you want to execute is
git push origin iteration1:iteration1