[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 549
  • 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

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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