-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
62 lines (47 loc) · 1.48 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
# Note: all you personal configuration and overrides should go to the file .gitconfig.user instead of this file
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# Display recent branches, and then check out the selected branch
cr = !git for-each-ref --sort=-committerdate --format='%(committerdate:relative): %(refname:short)' refs/heads/ | head -n 10 | fzf| cut -d':' -f2 | xargs git checkout
[color]
ui = true
[core]
excludesfile = ~/.gitignore
checkRoundtripEncoding = SHIFT-JIS,UTF-16LE-BOM
autocrlf = input
eol = lf
[init]
defaultBranch = main
[help]
autocorrect = 1
# Histogram is (unnoticeably) slower, but it generates much cleaner diffs
[diff]
algorithm = histogram
colorMoved = default
[merge]
ff = false
conflictstyle = zdiff3
# Automatic housekeeping
[fetch]
prune = true
# Force all new branches to automatically use rebase
[pull]
rebase = true
# Push easily. http://stackoverflow.com/a/23918418/89484
[push]
default = current
[stash]
showPatch = true
[advice]
addIgnoredFile = false
[url "git@github.com:"]
insteadOf = https://github.com/
# Keep this at the end so that the include overrides the config properly
[include]
# All your personal configuration and changes should go to that file
path = .gitconfig.user