Skip to content

Instantly share code, notes, and snippets.

@settermjd
Created August 9, 2017 09:15
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 settermjd/9ea78130734c3e07cd437c0cf2daeb5a to your computer and use it in GitHub Desktop.
Save settermjd/9ea78130734c3e07cd437c0cf2daeb5a to your computer and use it in GitHub Desktop.
Generate a git commit frange
git log --format=%h stable10..master | (head -n1 && tail -n1) | xargs -n 2 | awk '{ print $1".."$2 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment