如何在特定目录上"git diff"? [英] How do I 'git diff' on a certain directory?
本文介绍了如何在特定目录上"git diff"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
git diff
实际上在所有源代码上运行diff.如何在某个目录上执行此操作,以便可以查看其下文件的修改?
git diff
actually runs a diff on all source code. How do I do this on a certain directory, so that I can view modifications on files underneath it?
推荐答案
提供路径(在这种情况下为myfolder),然后运行:
Provide a path (myfolder in this case) and just run:
git diff myfolder/
这篇关于如何在特定目录上"git diff"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文