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?

  • How to create a file inside a repository using PyGithub?
  • ERROR: Error cloning remote repo 'origin'
  • If i push an amended commit will it create a new commit
  • View git log without merge commits
  • Automatically commit an empty .gitignore file after git init?
  • How can I clone only a subfolder of a Git repository and make all the files in the subfolder end up in the root?
  • How do you handle different Java IDEs and svn?
  • Git Giving “fetch first” error when trying to push
  • Git asks for commit message when pulling from other branch
  • Git number of commits per author on all branches
  • Using the JGIT, how can I retrieve the line numbers of added/deleted lines
  • Using ediff as git mergetool
  • One Solution collect form web for “Migrating a svn repo to git. Multiple app in svn repo need to broken into separate git repos”

    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
    Git Baby is a git and github fan, let's start git clone.