次の問題で苦労しています。私はgit-svnでSVN分岐に従うブランチを作成できません
git svn fetch
でSVNからリビジョンを取り出す続けるとき、私は次のエラーを取得しています:
[svn-remote "svn"]
url = https://somecompany.com/someproduct
fetch = trunk:refs/remotes/trunk
branches = branches/*:refs/remotes/*
tags = tags/*:refs/remotes/tags/*
:私はSVNの枝のデフォルトのフィルタを使用してリビジョンを取得したため
Found possible branch point: https://somecompany.com/product/trunk
=> https://somecompany.com/product/branches/deep/branches/product-001, 72666
Found branch parent: (refs/remotes/deep/branches/product-001) b685b7b92813885fdf 6b8e2663daf884bf504b14
Following parent with do_switch
Successfully followed parent
error: 'refs/remotes/deep' exists; cannot create 'refs/remotes/deep/branches/product-001'
fatal: Cannot lock the ref 'refs/remotes/deep/branches/product-001'.
update-ref -m r72667 refs/remotes/deep/branches/product-001 df51920e8f0a53f26507 c2679eb6a9dbad91e0d6: command returned error: 128
はこれが起こりました
今、以下の行が追加されていますが、遅すぎます。
branches = branches/deep/branches/*:refs/remotes/deep/branches/*
git svn resetを使用してすべてのコミットを削除することでこれを解決しようとしました。実際に私はgitが正しいことをしようとしているエラーメッセージから見ることができますが、分岐リモート/深い存在のためにすることはできません。
私は2つの解決策を探しました: 1.そのブランチ(リモート/ディープ)を削除しますが、リモートとしてgitによって追跡されているため、その解決策を見つけることができませんでした。 2.そのブランチに関連するすべての履歴を削除します。あまりにも成功しないん:(
誰が私の問題に対処する方法を知ってい
1. refs/remotes/deepをpacked-refsから削除する 2. .git/logs/refs/remotes/deepを削除すると、その方法を教えてください。 – ryenus
rmまたはdelで使用しているOSに応じて –