我最近从git diff
得到了一个有趣的结果实施例。 git diff-tree -r commit1 commit2 | grep file1
它给了我
:000000 100644 0000000000000000000000000000000000000000 422182cfbe61e33e1f662b554999a02bfbbdbe4a A file1
:100644 000000 1a7e0e2a3606b613e329979cf632c413897d21cc 0000000000000000000000000000000000000000 D file1
我很困惑这会发生什么。我的理解应该是
:100644 100644 1a7e0e2a3606b613e329979cf632c413897d21cc 422182cfbe61e33e1f662b554999a02bfbbdbe4a M file1