-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig.symlink
97 lines (81 loc) · 1.91 KB
/
.gitconfig.symlink
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
[user]
name = Andy Freeland
email = [email protected]
[includeIf "gitdir:~/src/"]
path = .gitconfig-pilot
[alias]
unstage = reset HEAD --
wut = diff -C --staged --word-diff
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
s = status -sb
d = diff --word-diff
changelog = log --no-merges --pretty=format:"-\\ %s"
pullify = config --add remote.origin.fetch ' refs/pull/*/head:refs/remotes/origin/pr/*'
diffu = diff @{u}
resetu = "![[ -z $(git diffu) ]] && git reset --hard @{u}"
rm-merged = delete-merged-branches --effort 3 --yes
git = !exec git
stash-no-index = stash --keep-index
touch = "!f() { touch \"$1\"; git add -N \"$1\"; }; f"
slb = branchless smartlog 'branches()'
hide-branchless = hide 'draft() - ancestors(branches())'
[core]
excludesfile = ~/.gitglobalignore
autocrlf = input
editor = nvim
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
features = navigate
syntax-theme = gruvbox-dark
file-style = blue omit
hunk-header-style = file line-number syntax
keep-plus-minus-markers = true
hyperlinks = true
hyperlinks-file-link-format = "file://{path}#{line}"
[color]
status = auto
branch = auto
diff = auto
interactive = auto
ui = 1
[push]
default = upstream
[grep]
lineNumber = true
[merge]
tool = splice
conflictstyle = diff3
[github]
user = rouge8
[rerere]
enabled = 1
[help]
autocorrect = 1
[rebase]
autostash = true
updateRefs = true
[stash]
showPatch = true
[log]
decorate = full
[pull]
ff = only
[protocol "http"]
allow = never
[protocol "git"]
allow = never
# https://twitter.com/glyph/status/1359955841810530304
[fetch]
fsckObjects = true
[transfer]
fsckObjects = true
[receive]
fsckObjects = true
# https://twitter.com/glyph/status/1360321244176863232?s=20
[fetch "fsck"]
zeroPaddedFilemode = ignore
badTimezone = ignore
[init]
defaultBranch = main