我正在努力解决以下问题。当我继续从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