Skip to content

Instantly share code, notes, and snippets.

@danhart
Created December 12, 2012 18:29
Show Gist options
  • Save danhart/4270300 to your computer and use it in GitHub Desktop.
Save danhart/4270300 to your computer and use it in GitHub Desktop.
git show the conflicting commit during a rebase
function show_patch() {
git show $(head -1 .git/rebase-apply/${1} | awk '{ print $2 }')
}
@danhart
Copy link
Author

danhart commented Dec 13, 2012

e.g. when, during a rebase, git output's "Patch failed at 0001". Then:

show_patch 0001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment