-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitconfig
More file actions
138 lines (111 loc) · 3.78 KB
/
Copy path.gitconfig
File metadata and controls
138 lines (111 loc) · 3.78 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
################################################################################
##
## ██████╗ ██╗████████╗ ██████╗ ██████╗ ███╗ ██╗███████╗██╗ ██████╗
## ██╔════╝ ██║╚══██╔══╝██╔════╝██╔═══██╗████╗ ██║██╔════╝██║██╔════╝
## ██║ ███╗██║ ██║ ██║ ██║ ██║██╔██╗ ██║█████╗ ██║██║ ███╗
## ██║ ██║██║ ██║ ██║ ██║ ██║██║╚██╗██║██╔══╝ ██║██║ ██║
## ╚██████╔╝██║ ██║ ╚██████╗╚██████╔╝██║ ╚████║██║ ██║╚██████╔╝
## ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝
##
################################################################################
[user]
name = Micah Kepe
email = micahkepe@gmail.com
signingkey = 0CA0E777FE959BE23D99563A290BC0FA832F2CBF
[commit]
gpgSign = true
verbose = true
[core]
autocrlf = input
excludesfile = ~/.gitignore_global
editor = nvim
pager = diff-so-fancy | less --tabs=4 -RF
preloadIndex = true
compression = 9
whitespace = trailing-space
[alias]
graph = log --all --graph --decorate --oneline
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ignore = "!gi() { local IFS=','; curl -sL https://www.toptal.com/developers/gitignore/api/\"$*\"; }; gi"
open = "!f() { \
url=$(git remote get-url origin); \
url=$(echo \"$url\" \
| sed -E 's#^git@([^:]+):#https://\\1/#; \
s#^ssh://git@([^:/]+)(:[0-9]+)?/#https://\\1/#; \
s#\\.git$##'); \
open \"$url\"; \
}; f"
pick = "!git log --oneline --all --color=always | \
fzf \
-m --no-sort --ansi \
--preview='git show --color=always {1}' \
--preview-window=right:60%:wrap | \
awk '{print $1}'"
[branch]
sort = -committerdate
[tag]
sort = -version:refname
[column]
ui = auto
[difftool "nvim_difftool"]
cmd = nvim -c \"packadd nvim.difftool\" -d \"$LOCAL\" \"$REMOTE\"
[diff]
algorithm = histogram
mnemonicPrefix = true
tool = nvim_difftool
[fetch]
prune = true
[pull]
rebase = true
[rebase]
missingCommitsCheck = warn
autoSquash = true
[init]
defaultBranch = main
[push]
autoSetupRemote = true
[http]
postBuffer = 157286400
[status]
branch = true
showStash = true
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[interactive]
diffFilter = diff-so-fancy --patch
singlekey = true
[credential "https://git.overleaf.com"]
username = micahkepe@gmail.com
helper = store
[maintenance]
auto = true
strategy = geometric
[maintenance "worktree-prune"]
auto = -1
[rerere]
enabled = true
[help]
autocorrect = prompt
[credential "https://github.com"]
helper = !gh auth git-credential
[credential "https://gist.github.com"]
helper = !gh auth git-credential
# Yoinked from: https://github.com/so-fancy/diff-so-fancy/blob/next/docs/pro-tips.md#improved-colors-for-the-highlighted-bits
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
func = 146 bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse