blob: d71289be01bf4a52c30045428118d08c17968aa2 (
plain)
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
|
[user]
email = acdw@acdw.net
name = Case Duckworth
[init]
defaultBranch = main
[push]
default = simple
[pull]
rebase = false
[core]
editor = emacsclient
precomposeunicode = true
pager = less
autocrlf = false
eol = lf
[merge]
conflictstyle = diff3
tool = vimdiff
[alias]
# Easier locations
root = rev-parse --show-toplevel
current-branch = rev-parse --abbrev-ref HEAD
# Easier listing and info
branches = branch -a
tags = tag -l
stashes = stash list
remotes = remote -v
staged = diff --cached
graph = log --graph -10 --branches --remotes --tags --format=format:'%Cgreen%h %Creset: %<(75,trunc)%s (%cN, %cr) %Cred%d' --date-order
precommit = diff --cached --diff-algorithm=minimal -w
# Easier actions
discard = checkout --
uncommit = reset --soft HEAD^
unstage = reset HEAD --
amend = commit --amend
pushall = !git remote | xargs -L1 git push --all
# Shortened commonalities
st = status -bs
ac = !git add . && git commit -m
yeet = push
yoink = pull
# diffing
[diff "lisp"]
xfuncname = "^(\\(.*)$"
[diff "org"]
xfuncname = "^(\\*+.*)$"
; [credential]
; helper = /home/case/.local/bin/pass-git-helper
; useHttpPath = true
[bash]
showUntrackedFiles = true
showDirtyState = true
[sendemail]
smtpserver = smtp.fastmail.com
smtpuser = acdw@fastmail.com
smtpencryption = tls
smtpserverport = 465
confirm="auto"
suppresscc = self
# Better urls
[url "https://github.com/"]
insteadOf = "gh:"
[url "git@github.com:"]
pushInsteadOf = "gh:"
[github]
user = duckwork
[url "https://gitlab.com/"]
insteadOf = "gl:"
[url "git@gitlab.com:"]
pushInsteadOf = "gl:"
[gitlab]
user = acdw
[url "https://git.sr.ht/"]
insteadOf = "sr:"
[url "git@git.sr.ht:"]
pushInsteadOf = "sr:"
[url "https://tildegit.org/"]
insteadOf = "tg:"
[url "git@tildegit.org:"]
pushInsteadOf = "tg:"
[gitea "tildegit.org/api/v1"]
user = acdw
|