且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

应该使用什么选项将git diff限制为一组给定的文件扩展名?

更新时间:2022-11-27 10:55:51

Yes, if you ensure that git expands a glob rather than your shell then it will match at any level so something like this (quotes are important) should work fine.

git diff -- '*.c' '*.h'

相关阅读

技术问答最新文章