git svn

Hi Experts,

When we do a "git svn clone" command, is there a way to pull a previous revision number?  

Also, more importantly, when working with git locally, with a central svn server for collaboration, when I do the clone call, should I be cloning to the same folder as my base svn working folder?  i.e., if my working folder for svn is c:\dev, should I do the following command to setup git in the same folder?  (or will it interfere or mess up svn?)

git-svn clone http://192.168.1.100:443/svn/dev/ c:\dev

Thank you!
Mike
LVL 1
threadyAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
evilrixConnect With a Mentor Senior Software Engineer (Avast)Commented:
When you clone an SVN repo you clone all of the history too so all you need to do is clone it and then use git-reset to go to the revision you're interested in. The git reset command is the equivalent to svn revert.

git reset --hard <rev>

You can clone to any directory you like. A git repo is completely self-contained.
0
 
threadyAuthor Commented:
Thanks again!  I'm loving git! :o)
0
 
evilrixSenior Software Engineer (Avast)Commented:
Hey Mike, you might find this thread interesting.
http://www.experts-exchange.com/Programming/Languages/CPP/Q_27321575.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.