我知道我可以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
,而只需进行一些小的更改。