Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: list all tracked files [duplicate]

Tags:

git

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.

Thank you very much

like image 222
Kenni Avatar asked Sep 28 '15 15:09

Kenni


People also ask

Which command provides the list of tracked files?

git ls-tree --full-tree --name-only -r HEAD | tree --fromfile .

How do you see what files were changed in git?

To find out which files changed in a given commit, use the git log --raw command. It's the fastest and simplest way to get insight into which files a commit affects.


1 Answers

Based on the question linked by Kristjan but with extra arguments to match output of ls-files:

git ls-tree --full-tree -r --name-only HEAD
like image 111
Holloway Avatar answered Nov 01 '22 22:11

Holloway