How do I migrate a flat svn repo to git repo

后端 未结 3 1871
情歌与酒
情歌与酒 2021-01-05 19:49

I have a flat svn repository which looks like:

my_repo/
├── file1.c
├── file2.c
├── file3.c
└── README

This repo has no branches, or tags a

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 20:18

    Hit same issue with an old 'flat' SVN repo, following worked with git v2.20.1: (following recipe on http://www.sailmaker.co.uk/blog/2013/05/05/migrating-from-svn-to-git-preserving-branches-and-tags-3/ )

    git svn init  --stdlayout --prefix=svn/ -T /
    git svn fetch --all
    

提交回复
热议问题