-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitconfig
More file actions
81 lines (68 loc) · 1.94 KB
/
Copy path.gitconfig
File metadata and controls
81 lines (68 loc) · 1.94 KB
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
# Default identity for any directory not matched below
[include]
path = ~/.gitconfig-work
# NOTE: the trailing forward slash is crucial
[includeIf "gitdir:~/git/work/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/.claude/plugins/marketplaces/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/git/personal/github/"]
path = ~/.gitconfig-personal-github
[includeIf "gitdir:~/git/personal/gitlab/"]
path = ~/.gitconfig-personal-gitlab
# in case the https url is used in a git clone
[url "git@github.com:"]
insteadOf = https://github.com/
# Use the gpg program to sign commits
[gpg]
program = gpg
# always sign commits with gpg
[commit]
gpgsign = true
verbose = true
[credential "https://github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
# always sign off
[format]
signoff = true
[init]
defaultBranch = main
[core]
excludesfile = ~/.gitignore_global
# pager = delta --plus-color="#012800" --minus-color="#340001" --theme='Monokai Extended'
[credential]
helper = store
[url "https://user@hostname"]
insteadOf = ssh://git@hostname
[url "https://x-access-token@github.com"]
insteadOf = ssh://git@github.com
[url "https://x-access-token@127.0.0.1:49784"]
insteadOf = ssh://git@127.0.0.1:49784
[url "https://x-access-token@some-host"]
insteadOf = ssh://git@some-host
[pager]
diff = delta
show = delta
reflog = delta
[interactive]
diffFilter = delta --color-only
[tag]
gpgSign = true
[remote "origin"]
prune = true
[fetch]
prune = true
[gtr "ai"]
default = claude
[difftool "difft"]
cmd = difft \"$LOCAL\" \"$REMOTE\"
#[mergetool "sourcetree"]
# cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
# trustExitCode = true
#[difftool "sourcetree"]
# cmd = opendiff \"$LOCAL\" \"$REMOTE\"
# path =