-
Notifications
You must be signed in to change notification settings - Fork 11
/
gitconfig
59 lines (59 loc) · 1.25 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
[advice]
detachedHead = false
skippedCherryPicks = false
diverging = false
[alias]
co = checkout
dc = diff --cached
lg = log --oneline --decorate --graph -30
lga = log --oneline --decorate --all --graph -30
recommit = commit --amend --no-edit
st = status
tg = "!f() { [ -n \"$1\" ] && git tag -s -m $1 $1; }; f"
tgf = "!f() { [ -n \"$1\" ] && git tag -f -s -m $1 $1; }; f"
up = !git fetch origin main && git rebase origin/main
upm = !git fetch origin master && git rebase origin/master
[branch]
sort = -committerdate
[color]
ui = auto
[commit]
gpgsign = true
[core]
autocrlf = false
editor = vim
excludesfile = ~/.gitignore
[diff]
mnemonicprefix = true
[fetch]
prune = true
[help]
autocorrect = 1
[merge]
ff = only
tool = nvimdiff
[mergetool]
keepBackup = false
[mergetool "nvimdiff"]
cmd = nvim -d "$LOCAL" "$MERGED" "$REMOTE" -c ':wincmd l' -c ':wincmd J'
[push]
default = current
[rebase]
autoSquash = true
autoStash = true
stat = true
[rerere]
enabled = true
[status]
branch = 1
short = 1
[user]
email = [email protected]
name = patrick brisbin
signingkey = CEC8925D
[url "[email protected]:pbrisbin/"]
pushInsteadOf = "https://github.com/pbrisbin/"
[pull]
ff = only
[init]
defaultBranch = main