-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
83 lines (75 loc) · 1.92 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
[user]
name = Muhun Kim
email = iam@muhun.kim
signingkey = 8C03B63B
[core]
editor = nvim
pager = less -+XF -SQc
excludesfile = ~/.gitexclude
fscache = yes
autocrlf = no
quotepath = no
precomposeunicode = yes
[init]
defaultBranch = main
[log]
date = iso8601
[color]
ui = auto
[diff]
renames = copies
tool = vimdiff
[difftool]
prompt = no
[fetch]
prune = yes
[branch]
autosetuprebase = always
[push]
default = simple
followTags = true
[merge]
tool = vimdiff
conflictstyle = diff3
[credential "https://github.com"]
username = x86chi
[filter "lfs"]
required = yes
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[include]
path = ~/.gitconfig.local
[alias]
# Basic aliases are located at https://github.com/simnalamburt/cgitc/blob/master/abbreviations
# b = "!_() { git blame -sfMCCC $GIT_PREFIX$1 | perl -pe 's|^(.{8}) .+? ([0-9]+?)\\) |\\x1b[38;5;243m$1 \\x1b[38;5;216;48;5;234m @{[sprintf(\"%5d\",$2)]} \\x1b[0m |g' | $(git config core.pager) -R; }; _"
# g = "log --graph --pretty='format:%C(auto)%h%d %s%x1b[38;5;022m% GS%x1b[0m'"
# h = "log --patch --find-renames --stat --follow"
[commit]
gpgsign = true
sshsign = false
[gpg]
program = /usr/local/MacGPG2/bin/gpg
[hub]
protocol = ssh
[pull]
rebase = true
[credential]
helper = osxkeychain
[tag]
forceSignAnnotated = true
[alias]
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold red)%h%C(reset) : %C(bold green)(%ar)%C(reset) - %C(cyan)<%an>%C(reset)%C(bold yellow)%d%C(reset)%n%n%w(90,1,2)%C(white)%B%C(reset)%n'
browse = "!f() { open $(git config remote.${1:-origin}.url | sed -E 's/:([^\\/])/\\/\\1/g' | sed -e 's/ssh:\\/\\///g' | sed -e 's/git@/https:\\/\\//g' | sed -e 's/\\.git$//g'); }; f"
[web]
browser = firefox
[diff]
tool = difftastic
external = difft
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[diff "plist"]
textconv = defaults read