-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
109 lines (109 loc) Β· 2.76 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
# This is Git's per-user configuration file.
[user]
name = Jacob Chapman
email = [email protected]
[rerere]
enabled = true
[push]
default = current
autosetupremote = true
followtags = true
[core]
pager = delta --syntax-theme GitHub --max-line-length 1024 # --keep-plus-minus-markers
excludesfile = /home/xk/.gitignore_global
preloadindex = true
fscache = true
eol = lf
autocrlf = false
logallrefupdates = true
attributesfile = /home/xk/.gitattributes_global
[transfer]
fsckobjects = true
[fetch]
fsckobjects = true
[receive]
fsckObjects = true
[interactive]
diffFilter = delta --color-only
[diff]
algorithm = histogram
indentHeuristic = true
tool = delta
difftool = delta
colormoved = zebra
context = 5
[delta]
navigate = true
[diff "sqlite3"]
binary = true
textconv = "echo .dump | sqlite3"
[color]
ui = auto
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = yellow
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[color.grep]
match = red normal bold
filename = magenta
lineNumber = green
column = green
separator = cyan
[pull]
rebase = merges
[rebase]
autoStash = true
autosquash = true
updateRefs = true
missingCommitsCheck = warn
[init]
defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[credential]
helper = cache
[help]
autocorrect = 30
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
autoStash = true
conflictstyle = zdiff3
summary = true
diffstat = true
log = 50
[log]
date = relative-local
[url "[email protected]:"]
insteadOf = https://github.com/
[alias]
branches = for-each-ref --sort='authordate' --format='%(authordate:short), %(authorname), %(refname:lstrip=2)'
unmerged = for-each-ref --sort='authordate' --format='%(authordate:short), %(authorname), %(refname:lstrip=2)' --no-merged
conflicts = !git diff --name-only --diff-filter U
edit-conflicts = !git conflicts | xargs -r $(git var GIT_EDITOR)
history = log --follow -p --
utccommit = !git commit --date="$(date --utc +%Y-%m-%dT%H:%M:%S%z)"
amend = !git commit --amend --no-edit && git push -f
lg = log --color --graph --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit
keep = "!f() { dir=${1:-.}; printf \\*\"\\n\"!.gitignore > \"$dir/.gitignore\"; git add \"$dir\"; }; f"
divergence = log --reverse --oneline ..main
tags = tag --sort=creatordate --contains
reword = commit --amend -m
[advice]
skippedCherryPicks = false
[branch]
sort = -committerdate
[tag]
sort = taggerdate
[commit]
template = /home/xk/.gitmessage