Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created October 12, 2021 14:38
Show Gist options
  • Select an option

  • Save KyMidd/fa1abec819fca132900ad2b2b5558966 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/fa1abec819fca132900ad2b2b5558966 to your computer and use it in GitHub Desktop.
# Pull commit message from merge commit into master
commit_message_spaces=$(git log -n 1 --pretty="%b" | cut -d "/" -f 2-)
commit_message="${commit_message_spaces// /-}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment