-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdot_gitconfig
More file actions
80 lines (65 loc) · 1.95 KB
/
dot_gitconfig
File metadata and controls
80 lines (65 loc) · 1.95 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
[alias]
edit = commit --amend
no-edit = commit --amend --no-edit
no-diff-lockfile = diff -- ':!*lock.json' ':!*.lock' ':!*lock.yaml' ':!*lock.yml'
no-diff-pager = -c 'delta.line-numbers=false' diff
lg = log --graph --pretty='format:%C(red)%d%C(reset) %C(yellow)%h%C(reset) %ar %C(green)%aN%C(reset) %s'
lg-stat = log --stat --graph --pretty=oneline --abbrev-commit --date=relative
pull-rebase = "!b() { branch=\"${1:-main}\"; if git remote | grep -q '^upstream$'; then echo \"Rebasing from upstream/$branch\"; git pull --rebase upstream \"$branch\"; else echo \"Rebasing from origin/$branch\"; git pull --rebase origin \"$branch\"; fi; }; b"
patch = !git --no-pager diff --no-color --binary
patch-staged = !git --no-pager diff --no-color --binary --staged
patch-commit = "!f() { git --no-pager show --no-color --binary \"${1:-HEAD}\"; }; f"
pruner = !"git prune --expire=now; git reflog expire --expire-unreachable=now --rewrite --all"
repacker = repack -a -d -f --depth=300 --window=300 --window-memory=1g
optimizer = !"git pruner; git repacker; git prune-packed"
[core]
whitespace = off
autocrlf = false
safecrlf = false
pager = delta
attributesFile = ~/.gitattributes
[advice]
statusuoption = false
[fetch]
prune = true
[pull]
rebase = false
[push]
default = current
autoSetupRemote = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[interactive]
diffFilter = delta --color-only
[rerere]
enabled = true
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[url "git@github.com:"]
pushInsteadOf = git://github.com/
[help]
autocorrect = 1
[include]
path = ~/.gitconfig.local
path = ~/.config/delta/config.gitconfig
[init]
defaultBranch = main
[beads]
role = maintainer
[coderabbit]
machineId = cli/8e804d04952e46e58c434baa4049d11f