-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.local
104 lines (90 loc) · 2.37 KB
/
dot_gitconfig.local
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[core]
pager = delta
[pull]
rebase = true
[alias]
#stage
alias = "!sh -c '[ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -"
how = "!f() { bat -l gitconfig ~/.gitconfig.local | rg "$1"; }; f"
set = add -u
aa = add .
nuke = !git reset --hard HEAD && git clean -xfd
save = stash
#commit
ci = commit
put = commit --allow-empty --allow-empty-message --message ''
ca = commit --allow-empty --amend --allow-empty-message --reuse-message=HEAD --reset-author
pick = cherry-pick --allow-empty-message
upstream = !git push -u origin $(git current)
#log
st = status -sb
current = !git rev-parse --abbrev-ref HEAD
l = "!source ~/.config/git/git_helpers && pretty_git_log"
lg = log --graph -10
#navigate
topic = checkout -b
co = checkout
prev = checkout -
uncommit = reset HEAD^
branches = branch -vv
drop = branch -D
ds = diff --stat
#delete remote's branch
drop2 = push origin --delete
drop3 = !git drop $1 && git drop2 $1
rename = branch -m
#sync
sync = fetch --prune
c = clone
fr = !git svn fetch && git svn rebase
#submodules
# Why on demand?
spush = push --recurse-submodules="on-demand"
supdate = submodule update --remote --merge
#tricks
untrack = rm --cache --
[diff]
color = true
renames = copy
[color]
ui = auto
[color "branch"]
current = blue reverse bold
local = blue bold
remote = green bold
[color "diff"]
meta = 11
frag = magenta bold
old = red bold
new = green bold
commit = yellow bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[clean]
requireForce = false
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
syntax-theme = Dracula
features = side-by-side line-numbers decorations
whitespace-error-style = 22 reverse
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none
[push]
default=current
[diff]
colorMoved = default
[ghq]
root = /cache/code
; vim:ft=dosini