add git pr alias

This commit is contained in:
Thomas Ruoff
2017-12-31 15:31:24 +01:00
committed by Thomas Ruoff
parent cc1fee43ee
commit d47e377c55

View File

@@ -13,8 +13,9 @@
[alias] [alias]
st = status st = status
co = checkout co = checkout
cm = commit cm = commit
br = branch 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 llog = log --date=local
changes = diff --name-status -r changes = diff --name-status -r
diffstat = diff --stat -r diffstat = diff --stat -r