-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
63 lines (63 loc) · 1.5 KB
/
.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
52
53
54
55
56
57
58
59
60
61
62
63
[user]
name = Aaron Lasseigne
email = [email protected]
[core]
pager = delta
excludesfile = ~/.gitignore_global
editor = nvim
[color]
ui = true
[alias]
br = branch
ci = commit
cim = commit -m
co = checkout
st = status
cp = cherry-pick
p = push
l = pull
lr = pull --rebase=merges
d = diff
dc = diff --cached
dp = "!sh -c 'git d $1^..$1' -"
lp = log --pretty=format:\"%Cred%h%Creset %ci - %cn %Cgreen%s%Creset\"
la = "!sh -c 'git log --author=\"$1\"' -"
lpa = "!sh -c 'git lp --author=\"$1\"' -"
lpw = "!git log --pretty=format:\"%Cred%h%Creset %ci %cn %Cgreen%s%Creset\" --since=\"8 days ago\" && echo ''"
lpwa = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset %ci %cn %Cgreen%s%Creset\" --since=\"8 days ago\" --author=\"$1\" && echo \"\"' -"
sl = stash list
ss = stash push
sp = stash pop --index
sa = stash apply
sd = stash drop
search = log -m --reverse -S
e = edit
conflicts = "!git diff --name-only --diff-filter=U | uniq | xargs $EDITOR"
sw = switch
re = restore
amend = commit --amend --no-edit
gone = "!git restore --worktree --staged . && git clean --force -d"
[diff]
noprefix = true
renames = copies
colorMoved = default
[push]
autosetupremote = true
default = simple
[help]
autocorrect = 1
[stash]
showPatch = true
[rerere]
enabled = true
[github]
user = AaronLasseigne
[credential]
helper = osxkeychain
[init]
defaultBranch = main
[delta]
line-numbers = true
side-by-side = true
[include]
path = ~/.gitconfig.local