-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
37 lines (37 loc) · 902 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
[user]
name = Josh Klopfenstein
email = [email protected]
[alias]
a = add
c = commit
cg = log --all --decorate --oneline --graph
s = status -s
d = diff
cb = checkout -b
sw = switch
prebase = !git hook run pre-commit && git rebase --continue
l = log
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[$1]++' | head -n 10
[pull]
rebase = false
[merge]
tool = nvimdiff4
[mergetool "nvimdiff4"]
cmd = nvim -f -c \"Gvdiffsplit!\" \"$MERGED\"
trustExitCode = true
[init]
defaultBranch = main
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[core]
editor = nvim
[diff]
tool = nvimdiff2
[difftool "nvimdiff2"]
cmd = nvim -d $LOCAL $REMOTE
trustExitCode = true
[commit]
gpgsign = true
[fetch]
prune = true