Skip to content

Instantly share code, notes, and snippets.

@MaffooBristol
Created November 28, 2019 13:23
Show Gist options
  • Save MaffooBristol/850122ee36e985e106678f1c67e03d55 to your computer and use it in GitHub Desktop.
Save MaffooBristol/850122ee36e985e106678f1c67e03d55 to your computer and use it in GitHub Desktop.
Find all files, sorted by number of lines changed in Git
for i in *; do (git diff -w -U0 $i | wc -l | tr -d '[:space:]') && echo -e " $i"; done | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment