-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
70 lines (57 loc) · 1.33 KB
/
dot_gitconfig
File metadata and controls
70 lines (57 loc) · 1.33 KB
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
64
65
66
67
68
69
70
[user]
name = su8ru
email = main@su8ru.dev
signingkey = 7573ED215A8DD685
[commit]
gpgsign = true
[core]
autocrlf = input
editor = 'vim'
quotepath = false
pager = delta
[delta]
theme = Monokai Extended
line-numbers = true
side-by-side = true
minus-style = red bold ul
plus-style = green bold ul
[interactive]
diffFilter = delta --color-only
[add.interactive]
useBuiltin = false
[merge]
ff = false
[rebase]
autosquash = true
[push]
default = current
autoSetupRemote = true
[pull]
ff = only
[gpg]
program = gpg
[init]
defaultBranch = main
[alias]
# 2 chars
st = status
co = checkout
df = diff
cm = commit
pu = push
pl = pull
sw = switch
# utils
unstage = reset HEAD
current-branch-name = ! git branch | grep -e '^\\* ' | sed -e 's/^\\* //g'
force-pull = ! git fetch && git reset --hard origin/$(git current-branch-name)
# log
last = log -1 HEAD
l = log --graph --date=short --pretty=\"format:%C(yellow)%h %C(cyan)%ad %C(green)%an (%G?)%Creset%x09%s %C(red)%d%Creset\"
ll = !git --no-pager log --graph --date=short --pretty=\"format:%C(yellow)%h %C(cyan)%ad %C(green)%an (%G?)%Creset%x09%s %C(red)%d%Creset\" -n 10
[credential "https://github.com"]
helper =
helper = !gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !gh auth git-credential