Solved

git svn

Posted on 2011-09-07
3
536 Views
Last Modified: 2012-08-14
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
Comment
Question by:thready
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 500 total points
ID: 36499001
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
 
LVL 1

Author Closing Comment

by:thready
ID: 36582431
Thanks again!  I'm loving git! :o)
0
 
LVL 40

Expert Comment

by:evilrix
ID: 36583239
Hey Mike, you might find this thread interesting.
http://www.experts-exchange.com/Programming/Languages/CPP/Q_27321575.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 76
Arduino EDI - Programming Language - Voice Recorder 4 66
Full Screen problem when auto scale IFRAME 2 60
Not showing page correctly 3 29
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now