0

SVN プロジェクトを Git に移行しています。SVN プロジェクトはリポジトリ内に以下の構造を持っています。

/trunk
/branches
/tags

トランクをマスター ブランチとして機能させ、他のブランチを通常の git ブランチとして機能させ、タグを git タグとして機能させたいためです。

以下のコマンドを実行しました

 git svn clone --stdlayout <svn-repo-url>

そしてまた試した

 git svn clone <svn-repo-url> -T trunk -b branches -t tags

上記の両方のコマンドで、次のエラーが発生します。

fatal: .git\svn\refs\remotes\origin\https;C:\Softwares\Git\index: index file open failed: Invalid argument 
        (in cleanup) update-index -z --index-info: command returned error: 128 
W: +empty_dir: branches/<svn-repo-url>/branches 
fatal: Unable to create '<my-git-working-directory>/.git\svn\refs\remotes\origin\https;C:\Softwares\Git\index.lock': Invalid argument 

そして、以下のコマンドを実行すると

git svn clone --trunk=/trunk --branches=/branches --tags=/tags <svn-repo-url>

次のエラーが表示されます

svn-remote.svn: remote ref '/Users/<user-id>/AppData/Local/Programs/Git/trunk:refs/remotes/origin/trunk' must start with 'refs/'

助けてください

4

2 に答える 2

-1

仕事の一環として、多くの SVN から GIT への移行を実行したため、そのためのラッピング ツールを作成しました。

https://github.com/tikalk/tikal-alm-tools/tree/master/scm-tools/scm-migration/manual/SVN2GIT

プライベートでも相談できます

于 2016-09-15T11:53:12.413 に答える