Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git:列出所有跟踪的文件_Git - Fatal编程技术网

Git:列出所有跟踪的文件

Git:列出所有跟踪的文件,git,Git,在Git中,当我在子文件夹中时,是否有可能显示存储库中的所有跟踪文件?我尝试了:git ls files-->但它只列出了当前文件夹和子文件夹中的文件,而不是上面的文件夹中的文件 非常感谢您基于Kristjan链接的问题,但添加了额外参数以匹配ls文件的输出: git ls-tree --full-tree -r --name-only HEAD

在Git中,当我在子文件夹中时,是否有可能显示存储库中的所有跟踪文件?我尝试了:git ls files-->但它只列出了当前文件夹和子文件夹中的文件,而不是上面的文件夹中的文件


非常感谢您

基于Kristjan链接的问题,但添加了额外参数以匹配ls文件的输出:

git ls-tree --full-tree -r --name-only HEAD