当前位置:   article > 正文

git cherry-pick 出现merge.renamelimit 警告

merge.renamelimit

今天在git cherry-pick 的时候出现了merge.renamelimit variable 的警告:

  1. git cherry-pick aa09259109583b98b9d9e7ed0d8eb1b880d1eb97
  2. warning: inexact rename detection was skipped due to too many files.
  3. warning: you may want to set your merge.renamelimit variable to at least 3791 and retry the command.
  4. error: could not apply aa0925910958... mm, page_alloc: reset the zone->watermark_boost early
  5. hint: after resolving the conflicts, mark the corrected paths
  6. hint: with 'git add <paths>' or 'git rm <paths>'
  7. hint: and commit the result with 'git commit'
  8. Recorded preimage for 'mm/page_alloc.c'

从提示是当前版本离想要cherry-pick 的commit 已经过去太远了。

尝试将该变量设置为4000:

git config --global merge.renamelimit 4000

通过git confit -l 是可以看到已经生效的:

user.name=justinwei
user.email=justinwei@***.com
color.ui=auto
merge.renamelimit=4000
core.repositoryformatversion=0

 

但是再次尝试时出现了下面的问题:

  1. git cherry-pick aa09259109583b98b9d9e7ed0d8eb1b880d1eb97
  2. Performing inexact rename detection: 100% (14034282/14034282), done.
  3. error: could not apply aa0925910958... mm, page_alloc: reset the zone->watermark_boost early
  4. hint: after resolving the conflicts, mark the corrected paths
  5. hint: with 'git add <paths>' or 'git rm <paths>'
  6. hint: and commit the result with 'git commit'
  7. Recorded preimage for 'mm/page_alloc.c'

 从这个提示来看,至少merge.renamelimit 是消除了,剩下来就是解决无法apply 的问题了。

来看下git status 的结果:

  1. HEAD detached at 7f4d1978a86b
  2. You are currently cherry-picking commit aa0925910958.
  3. (fix conflicts and run "git cherry-pick --continue")
  4. (use "git cherry-pick --abort" to cancel the cherry-pick operation)
  5. Unmerged paths:
  6. (use "git add <file>..." to mark resolution)
  7. both modified: mm/page_alloc.c

 就是有冲突而无法cherry-pick,将冲突解决掉,然后执行git cherry-pick --continue 就ok 了。。。。

 

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/654290
推荐阅读
相关标签
  

闽ICP备14008679号