[英]Checkout the git commit corresponding to a certain revision from the old SVN repository?
您可以使用git svn find-rev
子命令git svn find-rev
與Subversion修訂版對應的git commit。 例如,如果您正在尋找與Subversion版本3431相對應的提交,您可以執行以下操作:
$ git svn find-rev r3431
42ed8bcf690fd0c655c5cee91b09258318fc56e8
然后,要檢查該修訂版,只需使用第一行中的對象名稱,例如,如果是:
commit 42ed8bcf690fd0c655c5cee91b09258318fc56e8
Author: torstenrohlfing <torstenrohlfing@42a5c34f-2066-0410-bec5-ba365beb4995>
Date: Fri Sep 9 17:11:38 2011 +0000
FIX: do not update time stamps on pre-existing files that did not get updated.
git-svn-id: https://www.nitrc.org/svn/cmtk/trunk@3431 42a5c34f-2066-0410-bec5-ba365beb4995
你可以做:
git checkout 42ed8bcf69
...嘗試修改。 (注意,這將分離HEAD,所以如果你不知道這意味着什么,那么首先值得搜索“分離的HEAD”:))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.