Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created October 12, 2021 14:41
Show Gist options
  • Save KyMidd/2c73f36f0ab461958f65b8c7434e7367 to your computer and use it in GitHub Desktop.
Save KyMidd/2c73f36f0ab461958f65b8c7434e7367 to your computer and use it in GitHub Desktop.
# Since this runs right after merge, use last commit message to construct new branch name
branch=$(git log -n 1 --pretty="%B" | grep "Merge pull request" | cut -d "/" -f 2-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment