Created
June 1, 2011 23:44
-
-
Save davereid/1003619 to your computer and use it in GitHub Desktop.
git branch-diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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