Repository navigation
Expand file tree
/
Copy path.gitconfig
More file actions
100 lines (86 loc) · 2.35 KB
/
Copy path.gitconfig
File metadata and controls
100 lines (86 loc) · 2.35 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[user]
name = David Crespo
email = crespo.dm@gmail.com
path = "~/.gitconfig-oxide"
[checkout]
defaultRemote = origin
[core]
pager = delta --dark
excludesFile = ~/.gitignore
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
# wrap long lines across up to 50 rows instead of truncating after 2 (the
# default). matters for asciidoc/markdown, which have very long prose lines. a
# finite cap bounds the blast radius of pathological one-liners (minified JS,
# base64 blobs).
wrap-max-lines = 50
# Ghostty erases the last cell when a line exactly fills the width and is
# followed by clear-to-EOL. Pad with spaces instead.
# https://github.com/dandavison/delta/issues/1021
line-fill-method = spaces
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = "#ffff00" reverse
# whitespace = red reverse
[alias]
co = checkout
cm = commit -m
aa = add --all
amend = commit --amend
namend = commit --amend --no-edit
fa = fetch --all
# Fancy logging.
# h = head
# hp = head with patch
# r = recent commits, only current branch
# rb = recent commits, all local branches
# ra = recent commits, all reachable refs
# l = all commits, only current branch
# la = all commits, all reachable refs
# b = all branches
head = !git r -1
h = !git head
hp = !. ~/.githelpers && show_git_head
r = !GIT_NO_PAGER=1 git l -15
rb = !git r --branches
ra = !git r --all
l = !. ~/.githelpers && pretty_git_log
pf = push --force-with-lease
b = !. ~/.githelpers && pretty_git_branch
ba = !. ~/.githelpers && pretty_git_branch --all
yolo = !. ~/.githelpers && git_yolo
ayolo = !. ~/.githelpers && git aa && git_yolo
[alias "push"]
please = push --force-with-lease
[diff]
colorMoved = default
[diff "javascript"]
xfuncname = "^\\s*(.*?\\bfunction\\b.*?\\(.*?\\))"
[push]
default = current
[pull]
ff = only
[init]
defaultBranch = main
[merge]
conflictstyle = diff3
[credential "https://github.com"]
helper =
helper = !gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !gh auth git-credential
[advice]
detachedHead = false