/
gitconfig
93 lines (66 loc) · 2.29 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[user]
name = Steve Losh
email = steve@stevelosh.com
[core]
pager = cat
editor = vim
excludesfile = /Users/sjl/.gitignore
[alias]
tags = tag -l
branches = branch -a
remotes = remote -v
; make-the-fucking-branch-point-at-this-fucking-commit = !sh -c "git checkout $1 && git reset --hard $2" -
root = rev-parse --show-toplevel
graft = cherry-pick -x
l = log -18 --color=always --all --topo-order --pretty='format:%Cgreen%h%Creset %s%Cred%d%Creset %C(black bold)(by %an)%Creset'
ll = log --color=always --all --topo-order --pretty='format:%Cgreen%h%Creset %s%Cred%d%Creset %C(black bold)(by %an)%Creset'
gl = log -12 --color=always --all --graph --topo-order --pretty='format:%Cgreen%h%Creset %s %C(black bold)(by %an)%Creset%C(yellow bold)%d%Creset%n'
gll = log --color=always --all --graph --topo-order --pretty='format:%Cgreen%h%Creset %s %C(black bold)(by %an)%Creset%C(yellow bold)%d%Creset%n'
pull = pull --ff-only
up = merge --ff-only
merge = merge --no-ff
join = merge --no-ff
ci = commit
cm = commit -m
d = !git diff | vim -R -
di = !git diff --cached | vim -R -
co = checkout
id = rev-parse
stat = status
st = status
unstage = reset HEAD
uns = reset HEAD
delete-local-branch = branch -D
delete-remote-branch = push origin --delete
delete-local-reference-to-remote-branch = branch -rd
currentbranch = !git branch --contains HEAD | grep '*' | tr -s ' ' | cut -d ' ' -f2
fo = fetch origin
fu = fetch upstream
po = push origin
; lo = pull origin
mo = !git merge --no-ff origin/`git currentbranch`
mu = !git merge --no-ff upstream/`git currentbranch`
uo = !git merge --ff-only origin/`git currentbranch`
uu = !git merge --ff-only upstream/`git currentbranch`
addremove = !git add . && git add -u
addrem = !git addremove
[push]
default = current
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[difftool "Kaleidoscope"]
cmd = ksdiff-wrapper git \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[diff]
tool = Kaleidoscope
[merge]
tool = splice
[mergetool "splice"]
cmd = "mvim -f $BASE $LOCAL $REMOTE $MERGED -c 'SpliceInit'"
trustExitCode = true
[web]
browser = open