-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
100 lines (78 loc) · 2.07 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
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ll = log --pretty=format:'%C(red)%h%Cred%d %Creset%s %Cgreen(%cr) %C(bold blue)<%cn>%Creset' --decorate --numstat --date=relative
branch-recent = branch --sort=-committerdate
up = pull
pushy = push origin HEAD
force-pushy = push --force origin HEAD
cotb = checkout --track=direct -b
merge-cleanup = !"find . -name '*.orig' -delete"
update-squashed-commit-date = !"GIT_COMMITTER_DATE=\"$(date)\" git commit --amend --no-edit --date=\"$(date)\""
cherry-pick-revert = "!git show -R \"$1\" | git apply"
get-co-authors = "!git log --pretty=format:'%an <%ae>' | sort | uniq"
[apply]
ignorewhitespace = change
whitespace = fix
[color]
ui = auto
[color "branch"]
remote = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green
changed = yellow
removed = red
untracked = cyan
[commit]
gpgsign = true
[core]
attributesFile = ~/.gitattributes
autocrlf = input
editor = nvim
eol = lf
excludesfile = ~/.gitignore
fileMode = false
safecrlf = false
symlinks = true
[credential]
helper = cache
[diff]
renames = copies
tool = vimdiff
[fetch]
recurseSubmodules = true
[format]
pretty = %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset
[help]
autocorrect = 1
format = man
[log]
abbrevCommit = true
date = relative
graph = true
[merge]
tool = vimdiff
[mergetool]
prompt = true
[mergetool "vimdiff"]
cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[push]
default = matching
[user]
name = "Eli Gundry"
email = "[email protected]"
signingkey = "B05C707D991F1E5FFCCFFDC26BA2E3B5B281BE37"
[github]
user = "eligundry"
[gpg]
program = gpg
[pull]
rebase = false
[init]
defaultBranch = main