Skip to content

Instantly share code, notes, and snippets.

@mao-odoo
Last active February 5, 2026 08:31
Show Gist options
  • Select an option

  • Save mao-odoo/ce94cbde99e4ad6a592b7cd72a34f944 to your computer and use it in GitHub Desktop.

Select an option

Save mao-odoo/ce94cbde99e4ad6a592b7cd72a34f944 to your computer and use it in GitHub Desktop.
Am I running this commit?
git merge-base --is-ancestor <commit_you_are_interrested_in> HEAD && echo "yes" || echo "no"
## if you want to check for another system , without having to checkout the commit yourself
git merge-base --is-ancestor <commit_you_are_interrested_in> <the_running_commit> && echo "yes" || echo "no"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment