Skip to content

Instantly share code, notes, and snippets.

@tebajanga
Created December 3, 2019 14:11
Show Gist options
  • Save tebajanga/d911f6db2102315f45a6373d8665bab0 to your computer and use it in GitHub Desktop.
Save tebajanga/d911f6db2102315f45a6373d8665bab0 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