-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
51 lines (45 loc) · 988 Bytes
/
.gitconfig
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
[gpg]
format = ssh
[user]
signingkey = /home/tyler/.ssh/id_ed25519.pub
email = [email protected]
name = Tyler Grunenwald
[alias]
a = add
ap = a -p
ai = a -i
au = a -u
anw = !sh -c 'git diff -U0 -w --no-color "$@" | git apply --cached --ignore-whitespace --unidiff-zero -'
b = branch
bl = branch -l
bd = branch -D
s = status -bs
sm = submodule
smi = submodule init
smu = submodule update
l = log --oneline
lt = l -10
ltt = l -20
ll = log
ohshitlist = l -g #<- show reflog in git log output for recovering bad situations
co = checkout
cob = co -b
r = remote
ra = r add
rv = r -v
c = commit
cm = commit -m
d = diff
di = d --ignore-all-space
ds = d --staged
dsi = ds --ignore-all-space
wt = worktree
clone-bare = !sh $HOME/.local/bin/git-clone-bare.sh
[push]
default = current
[core]
editor = nvim
[pull]
rebase = true
[init]
defaultBranch = main