add git pr alias

This commit is contained in:
Thomas Ruoff
2017-12-31 15:31:24 +01:00
parent 5d2e55a698
commit d125b015bc

View File

@@ -13,8 +13,9 @@
[alias]
st = status
co = checkout
cm = commit
br = branch
cm = commit
pr = !git fetch -fu ${2:-upstream} refs/pull/$1/head:pr/$1 && git checkout pr/$1 && :
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
llog = log --date=local
changes = diff --name-status -r
diffstat = diff --stat -r