gpt4 book ai didi

git-svn - #object# 在/opt/local/libexec/git-core/git-svn 第 4706 行的存储库中不存在

转载 作者:IT王子 更新时间:2023-10-29 01:29:58 24 4
gpt4 key购买 nike

git svn dcommit

它开始提交然后我明白了

A   spec/controllers/authenticated_system_spec.rb
A spec/controllers/sessions_controller_spec.rb
A spec/controllers/users_controller_spec.rb
A spec/fixtures/users.yml
A spec/helpers/users_helper_spec.rb
A spec/models/user_spec.rb
A vendor/plugins/haml/init.rb
A vendor/plugins/restful_authentication
7235d9150e8beb80a819923a4c871ef4069c6759 doesn't exist in the repository at /opt/local/libexec/git-core/git-svn line 4706
Failed to read object 7235d9150e8beb80a819923a4c871ef4069c6759 at /opt/local/libexec/git-core/git-svn line 570

有什么想法可以解决这个问题吗?

尝试使用 git fsck --full 检查,但 git repo 和所有 git 命令似乎工作正常,只是无法提交。

最佳答案

您是否创建了 submodules 在您的 Git 存储库中?
blog post似乎将其作为一个问题提及。

As of Jan 2009 git-svn does NOT work with submodules.
There is no good way to map submodules to svn and the perl script that implements git-svn just bombs when doing git svn dcommit.

You need to go back and rewrite history.
You should be able to use git commit --amend.

$ git tag bad mywork~5
$ git checkout bad
$ # make changes here and update the index
$ git commit --amend
$ git rebase --onto HEAD bad mywork

关于git-svn - #object# 在/opt/local/libexec/git-core/git-svn 第 4706 行的存储库中不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2771033/

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