Skip to content

Instantly share code, notes, and snippets.

@mitechie
Created December 9, 2013 15:11
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 mitechie/7873667 to your computer and use it in GitHub Desktop.
Save mitechie/7873667 to your computer and use it in GitHub Desktop.
Git tricks
###
### QA a pull request branch on remote: juju
###
# Pull info on the specified pull request from the origin remote, not your
# github fork. The pull request is not on your fork.
fetch-pr = "!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f"
# git qa-pr juju 6 qa-sticky-headers
qa-pr = "!sh -c 'git checkout develop; git pull $0 develop; git checkout -b $2; git fetch-pr $0 $1; git merge pr/$1'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment