Skip to content

Instantly share code, notes, and snippets.

@denizmveli
Forked from gnarf/..git-pr.md
Last active January 4, 2016 00:49
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 denizmveli/8543868 to your computer and use it in GitHub Desktop.
Save denizmveli/8543868 to your computer and use it in GitHub Desktop.
[alias]
rpull = pull --rebase --stat
pullr = pull --rebase --stat
ap = add --patch
ad = add .
bl = blame -w
br = branch
ci = commit
cm = commit -m
co = checkout
df = diff
l = log --graph --decorate
lg = log --decorate -p
st = status
s = status
unstage = reset
pr = "!f() { git fetch -fu origin refs/pull/$1/head:pr/$1; } ; f"
prr = "!f() { git fetch -fu $1 refs/pull/$2/head:pr/$2; } ; f"
pru = "!f() { git fetch -fu upstream refs/pull/$1/head: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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment