christianmlong + pr   1

Easily checkout local copies of pull requests from remotes:
[alias]
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
git  pull_request  pr  shell  alias 
september 2016 by christianmlong

Copy this bookmark:



description:


tags: