Skip to content

Instantly share code, notes, and snippets.

@davereid
Created June 1, 2011 23:44
Show Gist options
  • Save davereid/1003619 to your computer and use it in GitHub Desktop.
Save davereid/1003619 to your computer and use it in GitHub Desktop.
git branch-diff
[alias]
branch-name = !git for-each-ref --format='%(refname:short)' `git symbolic-ref HEAD`
cd-root = rev-parse --show-cdup
branch-diff = !git format-patch --stdout $1 > `git cd-root``git branch-name`.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment