-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
40 lines (40 loc) · 1.07 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
[core]
editor = code --wait
pager = less -FRX
[user]
name = Dan Steren
email = daniel.d.steren@gmail.com
signingkey = 3B76D78AEAD72B81
[alias]
alias = "!f() { git config --global alias.$1 \"$2\"; }; f"
aliases = config --get-regexp alias
b = branch
c = checkout
cd = switch
mkcd = switch -c
cm = checkout master
delete-remote = push origin --delete
ls = branch
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[$1]++' | head -n 10 | awk -F' ~ HEAD@{' '{printf(\" \\033[33m%s: \\033[37m %s\\033[0m\\n\", substr($2, 1, length($2)-1), $1)}'
new = checkout -b
spruce = remote prune origin
rename = branch -m
reset-branch = reset --hard HEAD
s = status
unpushed = log @{u}..
uncommit = reset HEAD^
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[commit]
gpgsign = true
[fetch]
prune = true
[help]
autocorrect = 10