Git head 与 SVN head 匹配 - 如何继续提交/标记到 SVN?
我正在使用 git svn set-tree 并设法将我的 svn trunk 与我的 git 存储库的主干相匹配。现在我已经成功set-tree
,我想我可以继续正常使用git svn
,但它并没有那样工作。
我想对 SVN 做一个标记,我执行以下操作:
git svn -i trunk tag 0.1
Can't call method "full_pushurl" on an undefined value at ...\Git/libexec/git-core\git-svn line 952.
我正在运行 git 版本 1.7.7.msysgit.1(在 Windows 7 64 位下),这是 mysysgit 中的错误吗?
由于某种原因,我必须使用这个 -i trunk
来让 set-tree 工作,我在 git/config
中只有一个 svn 远程,并且不知道为什么我必须使用-i
。
我可以重新开始,删除 git-svn 设置并以某种方式告诉我的 git svn Git head 与 SVN head 匹配,以便所有命令如 git svn tag 和git svn dcommit
会再次工作吗?
I was playing around with git svn set-tree
and managed to set my svn trunk
match my git repository's trunk. Now that I've managed to set-tree
I thought I could continue use git svn
normally, but it didn't work like that.
I want to do a tag to SVN, I do following:
git svn -i trunk tag 0.1
Can't call method "full_pushurl" on an undefined value at ...\Git/libexec/git-core\git-svn line 952.
I'm running git version 1.7.7.msysgit.1 (under Windows 7 64bit), is this a bug in mysysgit?
I had to use this -i trunk
thing to get the set-tree working for some reason, I only have one svn remote in git/config
and am not sure why I have to use the -i
.
Can I start over, by deleting the git-svn settings and somehow say to my git svn
that Git head matches SVN head, so that all the commands like git svn tag
and git svn dcommit
would work again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我必须在服务器上使用 SVN 并在本地使用 Git,我会使用 SmartGit。我通过按远程 -> 推送高级 -> 推送所选标签来创建 SVN 标签。
当您使用 Windows 时,SmartGit 也可能更适合您,因为 git-svn 在 Windows 上非常慢,但 SmartGit 不运行它,而是有自己的用 Java 编写的 git-svn 实现。
I use SmartGit if I have to use SVN on the server and Git locally. And I create SVN tags by pressing Remote->Push advanced->Push selected tags.
As you use Windows, SmartGit can also be better for you because git-svn is very slow on Windows, but SmartGit doesn't run it but has its own implementation of git-svn written in Java.