git ls-tree: print the filenames of the current branch head in a tree structure (#10790)

pull/23/head
dyegoaurelio 2023-10-03 10:58:38 -03:00 committed by GitHub
parent f8d6aa88dc
commit b17e204669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -14,3 +14,7 @@
- List only the filenames of the tree on a commit:
`git ls-tree --name-only {{commit_hash}}`
- Print the filenames of the current branch head in a tree structure (Note: `tree --fromfile` is not supported on Windows):
`git ls-tree -r --name-only HEAD | tree --fromfile`