-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
54 lines (54 loc) · 1.39 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
[user]
name = Max Hung
email = info@maxhung.co.nz
username = maxhungry
signingkey = 2794A0211B676C3C
[core]
autocrlf = input
editor = $EDITOR
excludesfile = ~/.gitignore
pager = diff-so-fancy | less --tabs=4 -RF
[alias]
hist = log --pretty=format:\"%C(yellow)%h %C(reset)%ad | %C(blue)%s%d %C(reset)[%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
# aupajo freshness
freshness = "!f() { git for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:cyan)%(refname:short)%(color:reset) | %(committerdate:relative)%(color:reset) | %(subject)' | column -s '|' -t; }; f"
[push]
default = upstream
autoSetupRemote = true
[color]
ui = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[merge]
tool = vimdiff
[mergetool]
prompt = true
keepBackup = false
[mergetool "vimdiff"]
cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED
[init]
templatedir = ~/.git_template
defaultBranch = main
[color "diff-highlight"]
oldNormal = "red bold"
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[commit]
gpgSign = true
[url "https://"]
insteadOf = git://
[interactive]
diffFilter = diff-so-fancy --patch