-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.gitconfig
More file actions
69 lines (63 loc) · 1.85 KB
/
Copy path.gitconfig
File metadata and controls
69 lines (63 loc) · 1.85 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
[user]
name = Fredrik Averpil
email = fredrik.averpil@proton.me
[core]
excludesfile = ~/.gitignore_global
# editor = code --wait # vscode
editor = nvim
[pull]
ff = only
[merge]
tool = nvim
[mergetool "nvim"]
cmd = nvim -d $LOCAL $REMOTE $BASE $MERGED
[mergetool]
prompt = false
[diff]
tool = nvim_difftool
[difftool "nvim"]
cmd = nvim -d $LOCAL $REMOTE
[difftool "nvim_difftool"]
cmd = nvim -c \"packadd nvim.difftool\" -d \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[init]
defaultBranch = main
[rebase]
autostash = true
[commit]
template = ~/.gitcommit
[push]
autoSetupRemote = true
# Large file support via git-lfs
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
# GitHub https authentication
# Credential helpers are cumulative, not override: this host-scoped helper does
# NOT replace the generic `osxkeychain` helper inherited from the system
# gitconfig, it's appended after it — and osxkeychain, tried first, would answer
# with a cached (possibly stale) token. The empty `helper =` resets the list so
# gh is the sole credential source for github.com. Other hosts (e.g.
# codeberg.org) don't match this block and still use osxkeychain.
[credential "https://github.com"]
helper =
helper = !gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !gh auth git-credential
# Optional host-level SSH auth
[include]
path = ~/.gitconfig_ssh
# Optional commit signing
[include]
path = ~/.gitconfig_signing
# Always keep gitconfig for work at bottom of this file
[includeIf "hasconfig:remote.*.url:git@github.com:einride*/**"]
path = ~/.gitconfig_einride
[includeIf "hasconfig:remote.*.url:https://github.com/einride*/**"]
path = ~/.gitconfig_einride
[includeIf "hasconfig:remote.*.url:ssh://git@github.com/einride*/**"]
path = ~/.gitconfig_einride