How can I check a specific revision of my svn code with git svn

I am trying to check the specific revvion of my svn codebase. Usually, to check, I just type git svn clone svn+ssh://path_to_codebase . I need to check an older version of the codebase. How to do it?

+4
source share
2 answers

You can git svn clone as usual, and then use the usual tools - git checkout can give you floating access or create a new git branch at the desired point.

You can also use git svn init (note that it behaves slightly differently than git init ) and then git svn fetch -r XXX to get a specific revision. This is much faster if the repository is large, but the future git svn fetch will extract the rest of the revs (but there will never be earlier versions).

+6
source

I used the following and I got an older version.

 git checkout `git svn find-rev revision_number` 

Does anyone have any comments about this?

+6
source

Source: https://habr.com/ru/post/1489597/


All Articles