Skip to content

Instantly share code, notes, and snippets.

@hardikns
Created June 6, 2020 02:30
Show Gist options
  • Save hardikns/d068ccbf62701e47963cda0efb6cb45b to your computer and use it in GitHub Desktop.
Save hardikns/d068ccbf62701e47963cda0efb6cb45b to your computer and use it in GitHub Desktop.
prepare build
# gets the last tag on the branch
LAST_TAG=`git describe --abbrev=0 --tags`
echo "Features:"
echo ""
echo ""
echo "Commits:"
# git log
git log --oneline --no-decorate $LAST_TAG..${1:-master} | while read line; do echo "* $line"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment