Skip to content

Instantly share code, notes, and snippets.

@al3x
Created December 17, 2008 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save al3x/36876 to your computer and use it in GitHub Desktop.
Save al3x/36876 to your computer and use it in GitHub Desktop.
function rbdiff {
local branch
branch=$(git name-rev --name-only head)
git diff master..HEAD > "~/Desktop/${branch}.diff"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment