-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathgitconfig
116 lines (99 loc) · 2.88 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[user]
name = Michael Markert
email = markert.michael@googlemail.com
signingkey = Michael Markert <markert.michael@googlemail.com>
[core]
whitespace = fix,-indent-with-non-tab,trailing-space
excludesfile = ~/.gitexcludes
attributesfile = ~/.gitattributes
[include]
path = ~/.githubconfig
[apply]
whitespace = fix
[branch]
autosetupmerge = true
autosetuprebase = always
[color]
status = auto
diff = auto
branch = auto
interactive = auto
ui = auto
pager = false
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = green
changed = yellow
untracked = cyan
[color "interactive"]
error = cyan
header = yellow
[mergetool "ediff-windowed"]
cmd = emacsclient -c --eval \"(ediff-git-merge-emacsclient \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" \\\"$MERGED\\\" t)\"
trustExitCode = true
[mergetool "ediff-term"]
cmd = emacsclient -nw --eval \"(ediff-git-merge-emacsclient \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" \\\"$MERGED\\\" t)\"
trustExitCode = true
[merge]
tool = ediff-windowed
stat = true
[diff]
tool = gvimdiff
renames = copy
mnemonicprefix = true
[alias]
# abbrevs
ad = add
ci = commit
br = branch
co = checkout
pl = pull
pr = pull --rebase
ps = push
fe = fetch
df = diff
gdf = difftool
gdfc = difftool --cached
mg = merge
gmg = mergetool
st = status
lp = log -p
# adding
ap = add -p
ai = add -i
# status
bl = branch -av
vu = ls-files -u #view unmerged files
ls-ignored = ls-files --exclude-standard --ignored --others
# diffing
d1 = diff HEAD^1..
dfc = diff --cached
wd1 = diff --word-diff=color HEAD^1.. #word-diff from last commit
wdf = diff --word-diff=color #word-diff
wdfc = diff --word-diff=color --cached # word-diff cached
# logs
l1 = log --max-count=1 # last commit
l5 = log --max-count=5 # last 5 commits
l5o = log --pretty=oneline --max-count=5 # last 5 commits onelined
slog = log --pretty=format:'%Cred%h%Creset %C(yellow)%d%Creset | %s %Cgreen%cr%Creset %C(bold blue)[%an]%Creset' --date=relative --no-merges --abbrev-commit
stats = shortlog -s -n -e --no-merges
tree = log --graph --pretty=oneline --decorate --color --abbrev-commit
tree-all = log --graph --pretty=oneline --decorate --color --abbrev-commit --all
pc = log -p HEAD@{1}.. # pulled changes
# new commands
in = incoming
out = outgoing
addr = addremove
zip = !git archive -o $(basename $(readlink -e .)).zip HEAD
# amending
amend = commit --amend -C HEAD
amendc = commit --amend
[diff "lisp"]
xfuncname="^(\\((def|test).*)$"
[diff "python"]
xfuncname="^\\s*(class.*\\(.*\\)|def.*)(\\(|:)"
[push]
default = matching