Skip to content

Instantly share code, notes, and snippets.

@mao-odoo
Created May 17, 2021 11:36
Show Gist options
  • Save mao-odoo/ce94cbde99e4ad6a592b7cd72a34f944 to your computer and use it in GitHub Desktop.
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment