forked from jessarcher/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
90 lines (78 loc) · 1.96 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[alias]
a = add
aa = add --all
ap = add --patch
au = add --update
b = branch
ba = branch --all
bd = branch --delete
bD = branch --delete --force
bm = branch --move
bM = branch --move --force
c = commit
ca = commit --amend
ci = commit --interactive
cm = commit --message
cv = commit --verbose
d = diff
dc = diff --cached
ds = diff --staged
dw = diff --word-diff
f = flow
ff = flow feature
ffs = flow feature start
ffo = flow feature checkout
ffp = flow feature publish
fh = flow hotfix
fhs = flow hotfix start
fho = flow hotfix checkout
fhp = flow hotfix publish
l = log
lg = log --graph
lk = log --graph --topo-order --abbrev-commit --date=short --decorate --all --boundary --pretty=format:'%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn]%Creset'
lo = log --oneline
lp = log --patch
lt = log --topo-order
o = checkout
ob = checkout -b
s = status --short --branch
branch-list-merged = "!git branch --merged develop | grep -v -E '(develop|origin|master)'"
branch-delete-merged = "!git branch-list-merged | xargs git branch -d"
unstage = reset HEAD
undo-commit = reset --soft HEAD^
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
[color]
ui = auto
[commit]
gpgsign = true
[core]
editor = vim
excludesfile = ~/.gitignore_global
pager = delta
[diff]
tool = vimdiff
[fetch]
prune = true
[help]
autocorrect = 10
[include]
path = ~/.gitconfig_local
[push]
default = current
[rerere]
enabled = true
[merge]
conflictstyle = diff3
[interactive]
diffFilter = delta --color-only
[delta]
line-numbers = true
syntax-theme = Dracula
plus-style = "syntax #2A363B"
plus-emph-style = "syntax #2D4E45"
minus-style = "syntax #3B2C37"
minus-emph-style = "syntax #613038"
[pull]
rebase = false
[init]
defaultBranch = main