我在项目中遇到这样的错误:
$ git rebase otherbranch
First, rewinding head to replay your work on top of it...
Applying: Foo
Applying: Bar
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
hookup resolve-schema .merge_file_eZf29j .merge_file_Yuvarz .merge_file_52DZ32 7: 1: hookup resolve-schema .merge_file_eZf29j .merge_file_Yuvarz .merge_file_52DZ32 7: hookup: not found
fatal: Failed to execute internal merge
Failed to merge in the changes.
Patch failed at 0002 Bar
这是VM内部的一个旧的共享项目,所以它可能有各种神秘的配置。我怀疑某些东西被配置为寻找tpope/hookup,但我在Ruby宝石列表,项目Gemfile,或.git/hooks
目录或我的〜/中找不到它。 gitconfig,所以我不确定在哪里看。有什么想法吗?
答案 0 :(得分:2)
根据install routine判断,连接将做两件事:
post-checkout
挂钩上添加一行(存储在.git/hooks/post-checkout
)。merge=railsschema
。.git/info/attributes
属性
merge.railsschema.driver
部分添加到存储库的配置文件(存储在.git/config
)。撤消这些更改应该完全删除存储库中的连接。实际上只是从post-checkout钩子中删除该行应该可以正常工作,因为这是启动整个过程的原因。而built-in removal也是如此。