How to merge two branches with different directory hierarchies in git?

前端 未结 2 345
滥情空心
滥情空心 2020-12-07 11:54

I started using Maven with a web application project so the directory hierarchy changed. I created a new branch for the Maven integration. Now I have two branches one with t

2条回答
  •  我在风中等你
    2020-12-07 12:45

    Try setting merge.renameLimit to something high for this merge. git tries to detect renames, but only if the number of files is below this limit, since it requires O(n^2) processing time:

    git config merge.renameLimit 999999
    

    then when done:

    git config --unset merge.renameLimit
    

提交回复
热议问题