-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
57 lines (48 loc) · 1.57 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
[init]
defaultBranch = main
[branch]
sort = -committerdate
[alias]
diffne = "diff --no-ext-diff"
showe = "show --ext-diff"
brecent = "for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) %(color:magenta)%(objectname:short)%(color:reset) %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' --color=always"
brecent14 = "for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) %(color:magenta)%(objectname:short)%(color:reset) %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' --color=always" --count=14
[user]
name = Xiaochao Dong (@damnever)
email = the.xcdong@gmail.com
signingkey = 5E83FCFBD42A0CA7
[core]
editor = nvim
autocrlf = input
whitespace = trailing-space,cr-at-eol # indent-with-non-tab
[diff]
external = difft
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[diff "bin"]
# Use `hexdump` to diff binary files
textconv = hexdump -v -C
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[pull]
rebase = true
[url "git@github.com:"]
insteadOf = https://github.com/
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[merge]
tool = nvimdiff
conflictstyle = zdiff3
[rerere]
enabled = true
[mergetool]
keepBackup = false