Created
September 17, 2025 12:53
-
-
Save acsr/ea3a4c9eeec78b5bdc56a5a3d2847351 to your computer and use it in GitHub Desktop.
Git Changes as Tree | List all changed files in repo since first git commit as tree
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # get the hash of the first comit without parents | |
| # git diff with only file names as path | |
| # generate tree from a files with a list filepathes one per line (installed tree command required) | |
| git diff --name-only `git rev-list --max-parents=0 HEAD` | tree --fromfile . | |
| # Results in an ASCII tree visualisation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment