Svn2git 没有将分支附加到父级
不确定这是否是最好的提问地点,但我正在运行 svn2git 将 SVN 存储库转换为 git 存储库,并保留分支和标签。由于某种原因,转换完成后分支和标签不是 master 的后代,这非常烦人。
我想要转换的存储库位于 http://ros.berkeley。 edu/svn/berkeley-ros-pkg/stacks/berkeley_demos/。据我所知,它应该是标准布局。
如果有人可以帮助我,我将不胜感激。
Not sure if this is the best place to ask, but I'm running svn2git to convert an SVN repo to a git repo with branches and tags preserved. For some reason, the branches and tags are not descendents of master when the conversion is completed, which is pretty annoying.
The repository I want to convert is at http://ros.berkeley.edu/svn/berkeley-ros-pkg/stacks/berkeley_demos/. It should be in the standard layout as far as I can tell.
If anyone could help me out I would greatly appreciate it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是一个可能的解决方案(不幸的是,当我搜索原来的问题时,这并没有出现,但是当我搜索如何修改历史记录以更改提交的父级时,我找到了它)git - 设置提交的父级而不使用 rebase
编辑:耶!移植是要走的路,因为我实际上只是暂时这样做来弄清楚 svn 分支历史是什么样子(想想看 - 它是完全线性的,但它从主干到标签(实际上变成了分支)到一个分支)。当我进行正确的转换时,变基也会起作用。
This might be a possible solution (unfortunately this didn't come up when I searched for my original problem but when I searched on how to mangle history to change the parent of a commit I found it) git - setting a commit's parent without rebase
Edit: Yay! Grafts are the way to go, since I'm really only doing this temporarily to figure out what the svn branch history looks like (go figure - it's completely linear but it goes from trunk, to a tag (which really became a branch) to a branch). When i do the proper conversion rebase will work too.