标签: git
我有一个如下项目:
/my-project | dist/ | src/ | .git/
我使用git diff master~1 master来检查差异。 但是现在我想检查差异目录dist/,该如何处理?
git diff master~1 master
dist/
我搜索了SO,然后找到了这篇文章: Want to exclude file from "git diff"
但是我不能使用此命令来达到我的要求:
git diff master^1 master ':!dist/*'