Skip to content

Instantly share code, notes, and snippets.

@rfinz
Last active April 17, 2017 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rfinz/9335497 to your computer and use it in GitHub Desktop.
Save rfinz/9335497 to your computer and use it in GitHub Desktop.
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
git rev-list --all|tail -n1|xargs git show|grep -v diff|head -n1|cut -f1-3 -d' '
git rev-list HEAD -1 -- path/to/file # show commit hash of most recent revision of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment