Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在过去的某个时候,在提交 A 中,我有这个目录结构:
foo bar a.txt b.txt c.txt baz d.txt
我现在有:
foo ba r a.txt b.txt c.txt z d.txt e.txt
如何foo/ba/r在 now 和 commit 之间对目录进行目录差异A?
foo/ba/r
A
只是
git diff -C A -- foo/ba/r/
将检测并跟踪移动。