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?

  • Is there a way to specify which ssh key should be used for npm install
  • How to copy a commit from one branch to another in git without any merging?
  • Why do I sometimes see an “Entry 'filename' not uptodate. Cannot merge.” after a 'git reset --hard' and a 'git pull'?
  • How to run tests for all commits during a rebase
  • Git pre-commit hook : changed/added files
  • How do I re-add a file to my git repo that was previously being ignored and won't show up now?
  • Slow git-svn rebase reporting “W:unknown path/rev” and “W:svn cherry-pick ignored”
  • Git Error : master -> master (missing necessary objects)
  • Git-archive remote end hung up
  • What is the old command of git clone -c in git version 1.7.1
  • Easy way to embed svn revision number in page in PHP?
  • Rejected updates on branch tip when trying to rebase HEAD pointer
  • 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.