Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

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
0
thready
Asked:
thready
  • 2
1 Solution
 
evilrixSenior 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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now