-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
92 lines (73 loc) · 1.62 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
[user]
useConfigOnly = true
name = Rob Kennedy
# email set in .gitconfig.local
[core]
editor = vim
pager = less -RFX
excludesfile = ~/dotfiles/gitexcludes
attributesfile = ~/dotfiles/gitattributes
preloadindex = true
[init]
defaultBranch = main
[color]
ui = auto
[alias]
git = !git
root = rev-parse --show-toplevel
# Show the commit message (like git show, but without the changes)
commitmsg = log -1 --pretty=medium
# List files changed in the given commit (like git show --stat, but names only)
show-files = diff-tree --no-commit-id --name-only -r
pushf = push --force-with-lease
pushnew = !git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)
view = "!f() { git show \"${1:?missing commit ID}:${2:?missing file name}\"; }; f"
[http]
# See http://stackoverflow.com/a/8467406/33732 for sslCAinfo
[include]
path = ~/.gitconfig.local
[push]
default = simple
[pull]
ff = only
[pager]
status = true
branch = true
tag = true
[rebase]
instructionFormat = %s (%ar) <%an>
autostash = true
autoSquash = true
[color "diff"]
meta = dim yellow # With Solarized, this is orange
func = blue
[color "grep"]
matchSelected = red
matchContext = red
filename = magenta
linenumber = yellow
separator = cyan
function = blue
[grep]
lineNumber = true
patternType = extended
fallbackToNoIndex = true
[diff]
mnemonicPrefix = true
wsErrorHighlight = old,new,context
indentHeuristic = true
[merge]
conflictStyle = diff3
[rerere]
enabled = true
autoupdate = true
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[stash]
showPatch = true
[fetch]
prune = true
# vim: set ft=gitconfig: