-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
72 lines (72 loc) · 2.2 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
[user]
name = TAKAHASHI, Kyohei
email = kcrt@kcrt.net
#GPG: signingkey = A193875B
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJOPgJQcfABeJYG6ANq9VpyO/kcrt/V5gp7pcZpCtW6U kcrt@kcrt.net"
[gpg]
format = "ssh"
[color]
ui = auto
[core]
excludesfile = /Users/kcrt/.gitignore
attributesfile = ~/.gitattributes
quotepath = false
editor = vim
autocrlf=input
precomposeunicode = true
[alias]
log-graph = log --graph --date=auto:human --pretty=format:'%Cgreen%h %cd %Cblue%cn %Creset%s'
yesterday = log --graph --date=auto:human --pretty=format:'%Cgreen%h %cd %Cblue%cn %Creset%s' master@{yesterday}..master
oneweek = log --graph --date=short --pretty=format:'%Cgreen%h %cd %Cblue%cn %Creset%s' master@{1.week.ago}..master
onemonth = log --graph --date=short --pretty=format:'%Cgreen%h %cd %Cblue%cn %Creset%s' master@{1.month.ago}..master
diff-cached = diff --cached
unstage = reset HEAD --
vim = "!vim -c ':Gitv' ."
difff = diff --word-diff
diff-word = diff --word-diff
st = status -sb
co = checkout
ci = commit -v
diffgvim = difftool --tool=gvimdiff
diffvim = difftool --tool=vimdiff
diffmeld = difftool --tool=meld
diff-so-fancy = "!f() { [ -z \"$GIT_PREFIX\" ] || cd \"$GIT_PREFIX\" && git diff --color \"$@\" | diff-so-fancy | less --tabs=4 -RFX; }; f"
mergegvim = mergetool --tool=gvimdiff
mergevim = mergetool --tool=vimdiff
mergemeld = mergetool --tool=meld
edit-history = rebase -i HEAD~10
commit-without-sign = commit --no-gpg-sign
shallow-clone = clone --depth=1
[diff "exstrings"]
textconv = ~/dotfiles/script/exstrings.sh
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[commit]
gpgsign = true
template = ~/.gitcommittemplate
[pull]
rebase = true
[push]
default = simple
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[color "diff"]
old = red
new = green
[credential]
helper = osxkeychain
helper = cache --timeout 3600
[init]
defaultBranch = main
[diff "lockb"]
textconv = bun
binary = true
[rerere]
enabled = true