diff --git a/pages/common/git-ls-tree.md b/pages/common/git-ls-tree.md index ba67e6878b..6d4a0eb08f 100644 --- a/pages/common/git-ls-tree.md +++ b/pages/common/git-ls-tree.md @@ -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`