mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
add git pr alias
This commit is contained in:
committed by
Thomas Ruoff
parent
cc1fee43ee
commit
d47e377c55
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user