svn2gitユーティリティ(https://github.com/nirvdrum/svn2git)を使用してsvnからgitに移行しようとしています。このユーティリティは、以下のエラーが発生するたびに失敗するようです。誰かが同じエラーを見たことがあるか、より良い選択肢があれば、共有してください。svn2git - コマンドが失敗しました - エラー:pathspec 'master'がgitに既知のファイルと一致しません
コマンド
svn2git https://xyz.xyz.com/svn/svnrepo/ --verbose --authors authors.txt
コンソール出力
Running command: git svn init --prefix=svn/ --no-metadata --trunk='trunk' --tags
='tags' --branches='branches' https://xyz.xyz.com/svn/svnrepo/
Running command: git config --local --get user.name
Running command: git config --local svn.authorsfile authors.txt
Running command: git svn fetch
Running command: git branch -l --no-color
Running command: git branch -r --no-color
Running command: git config --local --get user.name
Running command: git config --local --get user.email
Running command: git checkout -f master
error: pathspec 'master' did not match any file(s) known to git.
command failed:
git checkout -f master
P.S.私のSVNリポジトリのURLも正しいです、それはトランクの真上です。私はWin7の64ビットマシンでこれを試しています。
ありがとうございます!
git repoにマスターブランチがありますか? –
いいえ、私はsvn repoを作成し、新しいgit repoをローカルで初期化する必要があります。 –
あなたは解決策を見つけましたか?私は同じ問題:( – MychaL