git fails to detect renaming

前端 未结 6 1855
清酒与你
清酒与你 2020-12-02 16:21

One branch (refactoringBranch) had a complete directory restructure. Files were moved chaosly, but the content was preserved.

I tried to merge: gi

6条回答
  •  萌比男神i
    2020-12-02 17:16

    Here is a perfect way to allow git know you rename a file.

    git mv old-file-name.ts new-file-name.ts
    

    Then git will pick up those changes.

    Enjoy.

提交回复
热议问题