Skip to content

Instantly share code, notes, and snippets.

@kjantzer
Created September 2, 2014 15:24
Show Gist options
  • Save kjantzer/78358e21404283055faf to your computer and use it in GitHub Desktop.
Save kjantzer/78358e21404283055faf to your computer and use it in GitHub Desktop.
Get a compiled list of commit messages since the latest tag. Make sure to change the `GIT_ROOT` variable.
#!/bin/bash
GIT_ROOT='/Users/{username}/Sites/my-git-repo/'
cd $GIT_ROOT
LAST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo $LAST_TAG
git log --pretty=format:'%s' $LAST_TAG..HEAD | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment