Skip to content

Instantly share code, notes, and snippets.

@jonathanknowles
Created February 25, 2020 07:32
Show Gist options
  • Save jonathanknowles/e9988983901f63e2094a5dd9535a8a11 to your computer and use it in GitHub Desktop.
Save jonathanknowles/e9988983901f63e2094a5dd9535a8a11 to your computer and use it in GitHub Desktop.
Querying git to find all previous paths for a file.
git log --follow --name-status -- filename | egrep R[0-9]+ | awk '{print $2; print $3}' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment