Skip to content

Instantly share code, notes, and snippets.

@opichals
Created March 28, 2012 22:42
Show Gist options
  • Save opichals/2231211 to your computer and use it in GitHub Desktop.
Save opichals/2231211 to your computer and use it in GitHub Desktop.
Find the merge commit that brought the <hash> into the current branch
#/usr/bin/env bash
git log --reverse --merges $1.. | head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment