不清楚git ls-files
如何使用通配符实际上是功能。Git ls-files行为
我开始使用git ls-files *.*
命令,它工作正常。它显示所有底层子目录下版本控制下的所有文件。 但现在我想选择一组文件。例如:"Device_*.xml"
所以我执行git ls-files Device_*.xml
但这没有结果?!
我知道该命令是区分大小写的。哪里不对?以下是我用输出执行的命令列表。使用Git版本:2.6.1.windows.1
D:\GIT\repo>git clean -xdf
D:\GIT\repo>git reset --hard
HEAD
现在是7de8f5b
[IP-826-通用配置管理票]合并远程追踪分支 '原产地' 进入IP-826-通用构型管理票
D:\GIT\repo>git status
分支IP-826-通用配置管理票
你的分支上最新与“产地/ IP-826-仿制配置 - 管理票”。
Untracked files:
(use "git add <file>..." to include in what will be committed)
没有加入到承诺,但未跟踪文件存在(使用“混帐添加”追踪)
D:\GIT\repo\Imagepipe\SettingsDB\GeneratedDevicesAllPlatforms>dir Device_*.xml /s
<LOT OF DEVICE_*.xml FILES HERE>
12/10/2015 10:46 681 Device_GeneratedDevices_0-0-0_0.xml
1 File(s) 681 bytes
Directory of D:\GIT\repo\Tools\DevTools\SettingsGenerator\SLIB2_GenerateSettings\Test\DB7\GeneratedDevices\D1
12/10/2015 10:46 1,997 Device_D1_0-0-0_0.xml
1 File(s) 1,997 bytes
Directory of D:\GIT\repo\Tools\DevTools\SettingsGenerator\SLIB2_GenerateSettings\Test\DB7\S_NOCHECK
12/10/2015 10:46 1,558 Device_S_NOCHECK_0-0-0_0.xml
1 File(s) 1,558 bytes
Directory of D:\GIT\repo\Tools\DevTools\SettingsGenerator\SLIB2_GenerateSettings\Test\DB7\S_TEST
12/10/2015 10:46 1,536 Device_S_TEST_0-0-0_0.xml
1 File(s) 1,536 bytes
Total Files Listed:
968 File(s) 14,032,982 bytes
0 Dir(s) 18,400,256,000 bytes free
D:\GIT\repo>git ls-files Device_*.xml
D:\GIT\repo>
**No result!**
有趣的是:“混帐LS-文件FOO - * .TXT” https://github.com/git/git/commit/de8bada2bf63d274b8f7759f0ffd0b7669e52eca – VonC