How do I migrate a flat svn repo to git repo?

Let’s learn how do I migrate a flat svn repo to git repo. The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

Migrate a repo not always using the trunk/branches/tags structure from SVN to GIT

I'm looking for a way to permanently (i.e. no git-svn will be used after the import and the repo will be cloned again to get rid of all git-svn remainders) migrate one of my SVN repositories to git. Usually this would be an easy thing - just doing the steps explained at http://www.jonmaddox.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/. However, in the SVN repository I switched to the trunk/branches/tags structure after some time, so about half of the ~2000 commits...

Answer:

TL,DR: It is possible to fix a messy up repository like the one described in the question when some...

Read more

ThiefMaster at Stack Overflow Mark as irrelevant Undo

Other solutions

It's me vs. git, and git is winning

I'm having a hell of a time learning git. I've read dozens of articles and tutorials, and I've made some progress...but it's been slow and agonizing, and I've only achieved a rudimentary level of competence. I'm usually pretty good about picking up new...

Answer:

So, I hate pull. 'git pull' is a terrible, deceptive way of using git, and I hate that it's the default...

Read more

escape from the potato planet at Ask.Metafilter.Com Mark as irrelevant Undo

How can I convince my manager who loves SVN to let me start our new project on Git?

I love Git and want to stick to it as I love it's workflow and the ay it works. My manager is a long time SVN user and loves it. I want us to use Git on our upcoming project, but he is reluctant to try Git and let me use it instead, and as I have never...

Answer:

For our projects, we use SVN or GIT, depending on the team. If you are the only dev on the project,...

Read more

Murtada Shah at Quora Mark as irrelevant Undo

Git (revision control): Can GitHub Downloads be set up with full repo power?

How do Downloads really work? Is it powerful as normal repo, somehow? I want every clear advantage of git mainstream commands, for simple downloads. Certainly downloads are clear for some people, except if asking for full git power: What is it for?...

Answer:

Downloads from Github come via an internal application there called Nodeload (https://github.com/blog...

Read more

Luke Carpenter at Quora Mark as irrelevant Undo

Is hosting a read-mostly git repo on a distributed file system practical?

The idea is that most developers would use the DFS-based repo to track the tip of the development stream, but only the integrator would publish updates to the DFS-based repo. As such, the need to repack the DFS-based repo will be somewhat, but not completely...

Answer:

I also asked this question on the git mailing list. Some answers here - http://thread.gmane.org/gmane...

Read more

Jon Seymour at Quora Mark as irrelevant Undo

Is the Git URL of my repo an email address, or a uniquely structured address specific to Git?

Specifically I am using Heroku actually. What is the format used here known as… "git@heroku.com:myappname.git".

Answer:

Not quite. The format you see does resemble an email address, but it is actually just pointing to a...

Read more

Divij Rajkumar at Quora Mark as irrelevant Undo

Revision Control Systems: As an SCM newbie, should I learn SVN before Git?

i never used a version control before and i want to learn /use Git, should i learn SVN before learning Git

Answer:

It is interesting to contrast the answers of Steven Grimm and Julien Duponchelle, who both end up suggesting...

Read more

Ted Pavlic at Quora Mark as irrelevant Undo

GitHub: Am I meant to set up git in the same directory as my .xcodeproj file (and include that file) if I want to collaborate using a remote repo? If so, how come Xcode doesn't do that?

Does anyone have a 'standard operating procedure' for collaborating using Xcode and a remote repository? (I am confused by these answers: I manually pushed an Xcode project from one computer (to a remote private git repository) but after I cloned it...

Answer:

You should set up git in whatever directory gets you version control on the project's files. There are...

Read more

Tom Harrington at Quora Mark as irrelevant Undo

Has anyone studied the opportunity cost of using SVN versus training engineers to use Git in a medium-size org?

Many software companies are stuck using svn, with all it's shortcomings and pain points, because of concerns of the cost of migrating and training engineer to use Git.  I'm curious whether anyone out there has some first hand experience doing such a...

Answer:

Before make this migration ask yourself. Everyone in company understand concept of Revision Control...

Read more

Julien Duponchelle at Quora Mark as irrelevant Undo

How does a data scientist use version control tools like GIT and SVN?

Usually data science project involves in using a lot of of-the-shelf tools and packages in their source code. The amount of code written by them is usually not high as compared to that of a typical software development project(say web application development...

Answer:

Personally I don't use Git for everyday's small small tasks. But once I am working for a project and...

Read more

Ankit Sharma at Quora Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.