By francis_hao Mar 18,2018 html
git ls-fles 显示index和工做区的文件的信息。 git
git ls-files [-z] [-t] [-v]
(--[cached|deleted|others|ignored|stage|unmerged|killed|modified])*
(-[c|d|o|i|s|u|k|m])*
[-x <pattern>|--exclude=<pattern>]
[-X <file>|--exclude-from=<file>]
[--exclude-per-directory=<file>]
[--exclude-standard]
[--error-unmatch] [--with-tree=<tree-ish>]
[--full-name] [--abbrev] [--] [<file>...] 缓存
显示由工做目录中添加到缓存中的文件的相关信息。 spa
下面的选项决定要显示的文件 3d
只选取了经常使用的选项,更多选项参见参考【1】 htm
选项blog |
含义ci |
-c, --cachedget |
显示缓存了的文件(默认)it |
-d, --deleted |
显示删除了的文件 |
-m, --modified |
显示修改了的文件 |
-o, --others |
显示其余类型的文件(好比未追踪的) |
-i, --ignored |
显示忽略了的文件(知足忽略模式的) |
-s, --stage |
显示暂存的条目的相关信息(模式位,文件哈希后的值,暂存号和文件名), [<tag> ]<mode> <object> <stage> <file> 好比: |
本文由 刘英皓 创做,采用 知识共享署名-非商业性使用-相同方式共享3.0中国大陆许可协议 进行许可。欢迎转载,请注明出处:
转载自:http://www.cnblogs.com/yinghao1991/p/8594962.html
【1】man git-ls-files