Skip to content

Instantly share code, notes, and snippets.

@pasela
Created August 31, 2012 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pasela/3551124 to your computer and use it in GitHub Desktop.
Save pasela/3551124 to your computer and use it in GitHub Desktop.
SubversionのリポジトリからGitのbareリポジトリへの移行

SubversionのリポジトリからGitのbareリポジトリへの移行

手順

git init --bare --shared=true foo.git
cd foo.git
git --bare svn init -s file:///path/to/svn/repo
git --bare svn fetch

実行例

$ git init --bare --shared=true foo.git
Initialized empty shared Git repository in /path/to/foo.git/

$ cd foo.git
$ git --bare svn init file:///path/to/svn/foo

$ git --bare svn fetch
        A       test.txt
r1 = b4e77596a114e2bbf8ad2d137e32f4a4778ee8cd (refs/remotes/git-svn)
        M       test.txt
r2 = 2be192a6a6c50f24aab03a99e7087c174898fe81 (refs/remotes/git-svn)
        M       test.txt
r3 = c54ca3c61befaec9ba16cf177c082ca7502dbe89 (refs/remotes/git-svn)

svn cloneはダメらしい

git --bare svn clone ...はうまくいかなかった

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment