Skip to content

Instantly share code, notes, and snippets.

@tebajanga
Created December 3, 2019 14:11
Show Gist options
  • Save tebajanga/5a9dd4e0e5ee95ba9b5db0b1dfe17626 to your computer and use it in GitHub Desktop.
Save tebajanga/5a9dd4e0e5ee95ba9b5db0b1dfe17626 to your computer and use it in GitHub Desktop.
firstlastcommits.sh
# Last commit
git log master..{branch_name} --oneline | tail -1
# First commit
git log master..{branch_name} --oneline | head -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment