Skip to content

Instantly share code, notes, and snippets.

@blbradley
Created July 28, 2013 22:43
Show Gist options
  • Save blbradley/6100584 to your computer and use it in GitHub Desktop.
Save blbradley/6100584 to your computer and use it in GitHub Desktop.
List all directories tracked by a git repo
#!/bin/sh
# Run in the project's root
git ls-files | sed 's:[^/]*$::'| sed '/^$/d' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment