English 中文(简体)
Migrating a svn repo to git. Multiple app in svn repo need to broken into separate git repos
原标题:

I have a svn repo with various apps as subdirectory of a single svn repo. That worked because I could have checked out a partial, repo. As I cant do that with git obviously I need multiple repos. I want to keep my commit histories in the git export. What is the simplest way to do this?

最佳回答

You dont need to specify the root directory for cloning. You can do it like this:

git svn clone svn://repository/subdirectory_of_app1 app1
git svn clone svn://repository/subdirectory_of_app2 app2
...

If you have trunk/branches/tags folders in each of the app folders, you can also add additional arguments:

git svn clone svn://repository/subdirectory_of_app1 -T trunk -t tags -b branches app1
...
问题回答

暂无回答




相关问题
Copy data from Access to SQL

I am in the process of migrating an existing Access database to a SQL database with a web front-end. I have successfully copied the database to SQL using the SQL Server Migration tool and am working ...

MongoMapper and migrations

I m building a Rails application using MongoDB as the back-end and MongoMapper as the ORM tool. Suppose in version 1, I define the following model: class SomeModel include MongoMapper::Document ...

Switching to WPF. Is it time?

I m considering switching from MFC to WPF. My first concern is that there are too many users who don t have .NET with WPF installed yet. Can anybody point to a source containing the WPF penetration ...

rake db:migrate running all migrations correctly

I m fairly new to Ruby on Rails here. I have 2 migrate files that were provided. The first one, prefixed with 001, creates a table and some columns for that table. The next migrate file, prefixed ...

Migrate Java Applet to what/where?

I am reviewing currently a medium size code base (around 30K LOC) which uses a huge Applet and interfaces with other systems. It s a tool to create custom labels, so we need drag-n-drop and other ...

热门标签