2016-08-04 10 views
3

Windows 10のsvn(サーババージョン1.6.11)からgit(バージョン2.9.2)への移行は記述どおりに動作していないようです(すべてのsvn-タグおよびブランチ)。Windowsからsvnからgit 2.9.2への移行

まず試してみてください。

私はhttps://www.atlassian.com/git/tutorials/migrating-convertに設けたチュートリアルを追いました。

結果:次のコマンドを実行したときに、すべての枝が、削除されます。

java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar clean-git 
--force 

次のtry:

私はhttps://git-scm.com/book/it/v2/Git-and-Other-Systems-Migrating-to-Gitで説明した手順に従っ:

  • チェックアウトプロジェクト:git svn clone --stdlayout --authors-file=authors.txt --no-metadata http://<the-svn-url-without-trunk> <module-directory>

  • git tag -lコマンドをチェックアウトすると、空の出力が生成されます。

    To move the tags to be proper Git tags, run 
    
    $ cp -Rf .git/refs/remotes/origin/tags/* .git/refs/tags/ 
    $ rm -Rf .git/refs/remotes/origin/tags 
    

    問題:

    *master remotes/origin/tags/de-vgwort-jerry-configuration-1.0.0 remotes/origin/tags/de-vgwort-jerry-configuration-1.0.1 remotes/origin/tags/de-vgwort-jerry-configuration-1.0.2 remotes/origin/tags/de-vgwort-jerry-configuration-1.1.0 remotes/origin/tags/de-vgwort-jerry-configuration-1.2.0 remotes/origin/tags/de-vgwort-jerry-configuration-1.3.0 remotes/origin/tags/de-vgwort-jerry-configuration-1.4.0 remotes/origin/tags/de-vgwort-jerry-configuration-1.4.1 remotes/origin/tags/de-vgwort-jerry-configuration-1.5.0 remotes/origin/trunk

次のステップは、マニュアルに従って:

  • git branch -aは(予想通り)、以下の出力を生成します経路.git/refs/remotes/origin/tags/は空です。すべてのsvn-タグはディレクトリ.git/svn/refs/remotes/origin/tags

    .git/svn/refs/remotes/origin/tags 
    

    に位置しているように見える各タグ用のサブディレクトリが含まれていました。私は.git/refs/tags/にこれらのディレクトリを移動しようとしましたが、git branch -aを実行するときに、これは、次の出力につながる:

    warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.0.0/index warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.0.0/unhandled.log warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.0.1/index warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.0.1/unhandled.log warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.0.2/index warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.0.2/unhandled.log warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.1.0/index warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.1.0/unhandled.log warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.2.0/index warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.2.0/unhandled.log warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.3.0/index warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.3.0/unhandled.log warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.4.0/index warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.4.0/unhandled.log warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.4.1/index warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.4.1/unhandled.log warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.5.0/index warning: ignoring broken ref refs/tags/de-vgwort-jerry-configuration-1.5.0/unhandled.log * master remotes/origin/tags/de-vgwort-jerry-configuration-1.0.0 remotes/origin/tags/de-vgwort-jerry-configuration-1.0.1 remotes/origin/tags/de-vgwort-jerry-configuration-1.0.2 remotes/origin/tags/de-vgwort-jerry-configuration-1.1.0 remotes/origin/tags/de-vgwort-jerry-configuration-1.2.0 remotes/origin/tags/de-vgwort-jerry-configuration-1.3.0 remotes/origin/tags/de-vgwort-jerry-configuration-1.4.0 remotes/origin/tags/de-vgwort-jerry-configuration-1.4.1 remotes/origin/tags/de-vgwort-jerry-configuration-1.5.0 remotes/origin/trunk

    を次にhttps://github.com/nirvdrum/svn2gitから

    使用svn2gitを試してみてください。しかし、このツールはうまく動作していないようです。

    * master remotes/svn/trunk

    は=>この結果は非常に無駄です:

    svn2git <svn-url-without-trunk> --authors ..\authors.txt 
    

    のコマンドを実行した後git branch -aは、次の出力を生成します。

    私はここで何が欠けていますか? Windowsと最新のgitバージョン2.9.2に適用できるドキュメントはありますか?一方向の輸入については

  • 答えて

    1

    、あなたはsubgit import

    SubGitは、インポートの無料提供を持っており、それは一般的にgit svnよりも完了してみてくださいすることができます。

    +0

    ありがとう、私はそれを試してみましょう。 –

    +0

    subgitのインポートはうまく動作します(git svnよりはるかに高速です)。 ありがとうございます。 –

    関連する問題