git fails to detect renaming

前端 未结 6 1847
清酒与你
清酒与你 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条回答
  •  無奈伤痛
    2020-12-02 17:04

    Whenever I had to rename/move files and forgot to tell GIT explicitly about it I used

    git add . -A
    

    which auto-detects files that were moved around

提交回复
热议问题