Skip to content

Instantly share code, notes, and snippets.

@aidnurs
Created February 14, 2022 20:39
Show Gist options
  • Save aidnurs/fe1b390167524b3d2ff9aea90013de0d to your computer and use it in GitHub Desktop.
Save aidnurs/fe1b390167524b3d2ff9aea90013de0d to your computer and use it in GitHub Desktop.
List changed git directories
git diff --name-only --cached | xargs -L1 dirname | cut -d '/' -f-2 | uniq | grep "/."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment