Git:列出所有跟踪的文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32826960/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Git: list all tracked files
提问by Kenni
is there a possibility in Git to show all tracked files in a repository when I am in a Subfolder? I tried: git ls-files --> but it lists just the files in the current foder and the subfolders - but not in the folders above.
当我在子文件夹中时,Git 是否有可能在存储库中显示所有跟踪的文件?我试过: git ls-files --> 但它只列出了当前文件夹和子文件夹中的文件 - 但不在上面的文件夹中。
Thank you very much
非常感谢
回答by Holloway
Based on the question linked by Kristjan but with extra arguments to match output of ls-files
:
基于 Kristjan 链接的问题,但有额外的参数来匹配输出ls-files
:
git ls-tree --full-tree -r --name-only HEAD