ワイルドカード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-generic-configuration-management-ticket] にあります リモート追跡ブランチ「オリジン」を IP-826-generic-configuration-management-ticket にマージします
D:\GIT\repo>git status
ブランチ上 IP-826-generic-configuration-management-ticket
ブランチは「origin/IP-826-generic-configuration-management-ticket」で最新です。
Untracked files:
(use "git add <file>..." to include in what will be committed)
コミットするために何も追加されていませんが、追跡されていないファイルが存在します (追跡するには「git add」を使用します)
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!**