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
git ls-tree --full-tree --name-only -r HEAD | tree --fromfile .
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With