Getting Git to Acknowledge Previously Moved Files

前端 未结 6 1943
别跟我提以往
别跟我提以往 2020-12-01 01:25

I\'ve moved a bunch of files around manually without thinking, and can\'t find a way to get git to recognize that the files are just moved and not actually different files.

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 01:53

    To have git remove files that are removed or moved already, just enter

    git add -u
    

提交回复
热议问题