-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
88 lines (78 loc) · 1.84 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
[include]
path = ~/.gitconfig-local
[core]
editor = "$(which nvim)"
pager = delta
autocrlf = input
[interactive]
diffFilter = delta --color-only
[alias]
a = add
aa = add .
cm = commit -m
cmw = "!f() { git add . && git commit -m "$(git branch --show-current)"; }; f"
s = status --short --branch
st = status
d = diff
dh = diff HEAD
dino = diff --name-only
co = checkout
cb = checkout -b
b = branch
bb = "!f() { git branch "$(git branch --show-current)_$(date +%Y%m%d_%H%M%S)"; }; f"
br = branch -r
bn = branch --show-current
bd = branch -d
bD = branch -D
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
l = log --pretty=oneline -n 20 --graph --abbrev-commit
lo = log --oneline
lof = log --oneline --follow
lofp = log --oneline --follow -p
ca = commit --amend
can = commit --amend --no-edit
ch = cherry
chv = cherry -v
chp = cherry-pick
p = push
pf = push --force-with-lease
pff = push -f
pu = push -u origin HEAD
pl = pull
f = fetch
fa = fetch --all
rhh = reset --hard HEAD
rb = rebase
rbo = rebase --onto
t = tag
ts = tag -l
wt = worktree
wtl = worktree list
wta = worktree add
wtr = worktree remove
wtp = worktree prune
cl = clone
sq = "!f() { git reset HEAD~$1; }; f"
sqb = "!f() { git reset HEAD~$(git rev-list --count $1...HEAD); }; f"
rlc = "!f() { git rev-list --count $1...HEAD; }; f"
count = "!f() { git rev-list --count $1...HEAD; }; f"
plb = "!f() { git fetch origin $1:$1; }; f"
contributors = shortlog --summary --numbered
whoami = config user.email
# list aliases
aliases = config --get-regexp alias
[pull]
ff = only
[init]
defaultBranch = main
[delta]
navigate = true
light = false
side-by-side = true
line-numbers = true
[merge]
conflictStyle = diff3
[diff]
colorMoved = default
[rerere]
enabled = true