更改后强制git识别文件已重命名

时间:2019-04-21 13:52:05

标签: git

我知道我可以git mv oldFile newFile将oldFile重命名为newFile,

但是我只是做了mv oldFile newFile然后编辑了newFile,所以现在git status不显示renamed: oldFile -> newFile,它表明oldFile被删除了,{{1 }}已创建,

newFile

是否有一种方法可以使$ git status On branch master Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) deleted: oldFile Untracked files: (use "git add <file>..." to include in what will be committed) newFile no changes added to commit (use "git add" and/or "git commit -a") 识别git newFile,而只需进行一些小的更改。

0 个答案:

没有答案