Skip to content

Instantly share code, notes, and snippets.

@Singond
Singond / git-is-ancestor
Last active September 16, 2020 12:50 — forked from simonwhitaker/git-is-ancestor
A script to determine whether one git commit is the ancestor of another
#!/bin/bash
#
# git-is-ancestor, by Simon Whitaker
#
# Suggested usage
#
# Store this file somewhere, make it executable, then alias
# it to git is-ancestor by putting this in your $HOME/.gitconfig:
#
# [alias]