git svn

thready
thready used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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.

Author

Commented:
Thanks again!  I'm loving git! :o)
evilrixSenior Software Engineer (Avast)

Commented:
Hey Mike, you might find this thread interesting.
http://www.experts-exchange.com/Programming/Languages/CPP/Q_27321575.html

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial