I migrated my repository from SVN to git. I used THIS site. Now I have a bug in revision X. How do I checkout from my git repository, knowing only the revision number from my old SVN repo?
Thank you for your Help.
I migrated my repository from SVN to git. I used THIS site. Now I have a bug in revision X. How do I checkout from my git repository, knowing only the revision number from my old SVN repo?
Thank you for your Help.
You can find the git commit that corresponds to the Subversion revision with the
git svn find-rev
subcommand. For example, if you're looking for the commit that corresponds to Subversion revision 3431 you can do:Then, to checkout that revision, just use the object name from the first line, e.g. if it's:
You can do:
... to try that revision. (Note that this will detach HEAD, so if you don't know what that means, it would be worth searching for "detached HEAD" first :))