Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created October 7, 2021 01:03
Show Gist options
  • Select an option

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

Select an option

Save KyMidd/6f0b1690c6175dc4611e669597f15c56 to your computer and use it in GitHub Desktop.
# Find hash of commit most common ancestor, e.g. where branch began
BRANCH_MERGE_BASE=$(git merge-base ${BASE_BRANCH} ${CURRENT_BRANCH})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment