小编Ser*_*vyn的帖子

git-svn无法创建跟随SVN分支的分支

我正在努力解决以下问题.当我继续从SVN获取修订版时

git svn fetch
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

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
Run Code Online (Sandbox Code Playgroud)

发生这种情况是因为我使用SVN分支的默认过滤器获取修订:

[svn-remote "svn"]
    url = https://somecompany.com/someproduct
    fetch = trunk:refs/remotes/trunk
    branches = branches/*:refs/remotes/*
    tags = tags/*:refs/remotes/tags/*
Run Code Online (Sandbox Code Playgroud)

现在,我添加了下面的行,但为时已晚:

branches = branches/deep/branches/*:refs/remotes/deep/branches/*
Run Code Online (Sandbox Code Playgroud)

我试图通过使用git svn reset来删除所有提交来解决这个问题.实际上我可以从错误消息中看到git正在尝试正确的事情,但不能因为分支遥控/深层存在.

我试图搜索2个可能的解决方案:1.删除该分支(遥控器/深),但由于它被git作为遥控器跟踪,我无法找到任何解决方案.2.删除与该分支相关的整个历史记录.也没有成功:(

有人知道如何处理我的问题吗?

git git-svn

5
推荐指数
1
解决办法
2426
查看次数

标签 统计

git ×1

git-svn ×1