forked from chrishunt/dot-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
77 lines (77 loc) · 1.92 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[user]
name = Chris Hunt
email = [email protected]
signingkey = D18D99CCF507ED11
[github]
user = chrishunt
[credential]
helper = osxkeychain
[hub]
protocol = https
[core]
pager = less -FRSX
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
editor = vim -f
autocrlf = input
safecrlf = true
excludesfile = /Users/chris/.global_gitignore
[commit]
gpgsign = true
[gpg]
program = /usr/local/MacGPG2/bin/gpg2
[advice]
statusHints = false
[web]
browser = open
[push]
config = default
default = tracking
[rebase]
autosquash = true
[merge]
summary = true
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = blue
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = blue
[alias]
a = add -u
aa = add --all :/
ap = add -u -p
b = browse
bam = "!source ~/.githelpers && delete_local_merged_branches"
bamr = "!source ~/.githelpers && delete_remote_merged_branches"
c = commit -v
co = checkout
d = diff
ds = diff --staged
dw = diff --color-words
po = push origin head
pr = "!f() { git fetch origin refs/pull/$1/head:pr/$1 && git co pr/$1; } ; f"
s = status -s -b
sc = diff --name-only --diff-filter=U
sm = submodule
smu = submodule foreach git pull origin master
summary = "!source ~/.githelpers && weekly_summary"
td = merge --no-ff
up = "!git fetch upstream && git rebase upstream/master"
w = whatchanged --decorate
wp = whatchanged --decorate -p
wtf = "!git fetch --multiple production origin && git log production/master..origin/master"
l = log --pretty='format:%C(yellow)%h %C(blue)%ad %C(reset)%s%C(red)%d %C(green)%an%C(reset), %C(cyan)%ar' --date=short