-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitconfig
35 lines (34 loc) · 1.21 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[user]
name = Corey Frang
email = gnarf@gnarf.net
[alias]
pretty-diff = !node /Users/gnarf/node/pretty-diff/pretty-diff.js
gist-diff = !node /Users/gnarf/node/pretty-diff/gist-diff.js
feature = flow feature
st = status -sb
ci = commit
cm = commit -am
br = branch
co = checkout
df = diff
lp = log -p
who = shortlog -n -s --no-merges
undo = reset --hard
lc = log ORIG_HEAD.. --stat --no-merges
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lf = log --pretty=fuller
cleanup = !git gc && git remote prune origin
fork = remote add -f
squash = merge --squash
pr = "!f() { git fetch -fu origin refs/pull/$1/head:pr/$1 ; git co pr/$1; } ; f"
prr = "!f() { git fetch -fu $1 refs/pull/$2/head:pr/$2 ; git co pr/$2; } ; f"
pru = "!f() { git fetch -fu upstream refs/pull/$1/head:pr/$1 ; git co 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"
pp = format-patch -U8 --stdout
[core]
autocrlf = input
excludesfile = "/Users/gnarf/.gitexcludes"
[credential]
helper = store
[color]
ui = auto