从 Subversion 迁移到 Git 如何找到给定修订号的提交?
使用 svn2git (内部使用 git-svn)从 Subversion 迁移到 Git 我想知道如何找到特定的修订提交。
问题跟踪器出现以下评论是很常见的: “已在 r12345 中修复”。
鉴于此,我希望能够提取与 r12345 相对应的差异。
提前致谢。
问候
Migrating from Subversion to Git using svn2git (which internally uses git-svn) I'd like to know how I can find a specific revision commit.
It is quite common to have issues tracker to have comments like:
"Fixed in r12345".
Given this, I'd like to be able, for example, to extract the diff corresponding to r12345.
Thanks in advance.
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
给定修订号,您可以找到 Git SHA,
我不知道是否有一种“一次性”方式来获取提交或其他任何内容,但您可以编写类似“
更新”的内容:请注意,您还可以获取提交消息 再次更新
:请注意,
find-rev
也可以反向工作:返回 SVN 提交号。
Given the revision number, you can find the Git SHA with
I don't know if there's a "one-shot" way to get the commit or anything, but you can write something like
Update: note that you can also grab the commit message with
Update again: note that
find-rev
also works in reverse:returns the SVN commit number.
对于 Git 来说是类似的:
获取差异:
With Git it’s similar:
Get the diff with: