[英]Git Diff get list of only INI files - Windows 7
這就是我在Mac上使用時的方式。
git diff refs/tags/l-build..HEAD --name-only $(find . -name *\.ini) >> log.txt
但是我要回到Windows。 我使用git-bash收到此錯誤
fatal: ambiguous argument '$(find': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
我認為Windows 10上的Windows Bash不會有問題,但由於某些我必須每天在工作中使用的重要軟件的限制,我必須使用Windows 7。
首先使用此命令過濾掉.ini
文件,然后應用git diff
命令。
git ls-files -m | grep '.ini'
結合起來如下:
git diff `git ls-files -m | grep .ini`
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.