Skip to content

Instantly share code, notes, and snippets.

@acsr
Created September 17, 2025 12:53
Show Gist options
  • Select an option

  • Save acsr/ea3a4c9eeec78b5bdc56a5a3d2847351 to your computer and use it in GitHub Desktop.

Select an option

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
# 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