gpt4 book ai didi

git-svn 问题

转载 作者:太空狗 更新时间:2023-10-29 13:31:48 28 4
gpt4 key购买 nike

是否可以克隆具有多个修订版的 git 存储库?我们尝试这样做,在第 1000 次提交后,它执行了一次 GC 并退出,使克隆处于无法使用的状态。

r998 = a5cb4f6a377b0ca80cd95d73b0e32f0552b9cdfd (git-svn)
M trunk/asdf/asdf.java
r999 = a87b06ae8aa497bb28c294b7ff8668ce2e4c8fcc (git-svn)
D tags/sdafasdf/asdfasdf.java
r1000 = 20b383d138499eee4f121079ae059458f3facc94 (git-svn)
Auto packing your repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Counting objects: 18103, done.
Compressing objects: 61% (10590/17116) 7116)
Compressing objects: 100% (17116/17116), done.
Writing objects: 100% (18103/18103), done.
Total 18103 (delta 9301), reused 0 (delta 0)
Removing duplicate objects: 100% (256/256), done.
root@host:~#

尝试通过再次键入命令来继续 checkout 会导致以下结果:

root@host:~/repo# git svn clone https://host/svn/repo
Remote ref refs/remote/git-svn is tracked by
"svn-remote.svn.fetch=:refs/remotes/git-svn"
and
"svn-remote.svn.fetch=:refs/remotes/git-svn"
Please resolve this ambiguity in your git configuration file before continuing

最佳答案

得出答案。使用 ubuntu 自带的 git 版本肯定有什么 bug。以下行在新创建的 .git/config 文件中出现了两次:

svn-remote.svn.fetch=:refs/remotes/git-svn
svn-remote.svn.fetch=:refs/remotes/git-svn

删除重复项让我可以输入一个 git svn fetch,它似乎在继续 checkout 。

关于git-svn 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1712956/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com