LoginSignup
2
2

More than 5 years have passed since last update.

subversionレポジトリからgitレポジトリに移行する時のAuthorのマッピング

Posted at
  1. マッピング用のテキストファイルを作成

例えば、 ~/.svnauthors として、以下のような書式で記述する

SVNUSER = GITUSER <GIT MAIL ADDRESS>
gigatune = gigatune <gigatune@localhost.com>
jack = gitJack <jack@localhost.com>

  1. マッピングファイルを利用するよう、svn-gitを設定

以下のコマンドを実行

$ git config --global svn.authorsfile ~/.svnauthors

```

  1. subversionレポジトリからgitレポジトリへ変換

通常どおり。

$ git svn clone -r 1:xxx svn://svn.host/path/to/repository /path/to/new/git

※ subversionのコミットの中に、authorsファイルにエントリーがないユーザーのコミットがある場合は変換が止まるので、適宜追加して変換をし直す。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2