我正在努力解決以下問題。當我繼續從SVN獲取修訂與git-svn無法創建一個分支來跟蹤SVN分支
git svn fetch
,我發現了以下錯誤:
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
這事,因爲我是使用SVN分支默認的過濾取修訂:
[svn-remote "svn"]
url = https://somecompany.com/someproduct
fetch = trunk:refs/remotes/trunk
branches = branches/*:refs/remotes/*
tags = tags/*:refs/remotes/tags/*
現在,我已經添加下面的行,但已經太晚了:
branches = branches/deep/branches/*:refs/remotes/deep/branches/*
我試圖解決這個問題,通過使用git svn reset來移除所有提交。其實我可以從錯誤信息中看到git正在嘗試正確的事情,但不能因爲分支遙控器/深存在而存在。
我試圖尋找2個可能的解決方案: 1.刪除該分支(遙控器/深),但由於它被git作爲遙控器追蹤,我無法找到任何解決方案。 2.刪除與該分支有關的整個歷史記錄。沒有成功過:(
有誰知道如何處理我的問題
關於 1.取出參/遙控器/深盒裝-裁判 2.刪除git的/日誌/參/遙控器/深 可以請你解釋如何做到這一點? – ryenus 2011-06-21 14:44:37
rm或del取決於您使用的操作系統 – 2012-01-19 14:49:29