—exclude
用于排除特定的
引用
。你想要的
git diff
排除特定的选项
路径名称
,
:(exclude)package-jock.json
。
看起来好像
git stash list
所调用
git log
但是这样:
git log —format=”%gd: %gs” -g —first-parent -m “$@” $ref_stash —
</code>
pathspec选项,例如
:(exclude)
会去
后
该
<code>
--
</code>
。所以你需要使用
<code>
git log
</code>
直:
git log —format=”%gd: %gs” -g —first-parent -m -p refs/stash — “:(exclude)package-lock.json”
</code>