Skip to content

Instantly share code, notes, and snippets.

@fheisler
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fheisler/e3d71b060d94f869863d to your computer and use it in GitHub Desktop.
Save fheisler/e3d71b060d94f869863d to your computer and use it in GitHub Desktop.

Install hub

In fish, create a function:

function hubpr
    hub pull-request -b TrackMaven:master -h TrackMaven:$argv[1] -i $argv[2]
end

funcsave hubpr

Make another function:

function pr
    hubpr (git rev-parse --abbrev-ref HEAD) $argv
end

funcsave pr

Now you can run pr 123 to turn issue number 123 into a PR based on the current pushed branch

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