据我所知,Git并不需要跟踪文件重命名/移动/复制操作,那么git mv的真正目的是什么?手册页不是特别描述性的......
它已经过时了吗?它是一个内部命令,不是普通用户使用的吗?
git
在调用时git mv file1 file2它是在内部记录移动(对于日志中的历史记录跟踪)还是与调用完全相同mv file1 file2,git rm file1并且git add file2?
git mv file1 file2
mv file1 file2
git rm file1
git add file2
git history rename
git ×2
history ×1
rename ×1