Skip to content

Instantly share code, notes, and snippets.

@jaredsinclair
Created May 14, 2024 17:30
Show Gist options
  • Save jaredsinclair/7ac27796581a5779afd0cea2ba51977d to your computer and use it in GitHub Desktop.
Save jaredsinclair/7ac27796581a5779afd0cea2ba51977d to your computer and use it in GitHub Desktop.
Ancestor Commit Check
# Does this branch contain my fix?
git merge-base --is-ancestor <maybe_ancestor> <descendant> && echo "Yes" || echo "No"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment