-
Notifications
You must be signed in to change notification settings - Fork 0
/
alias.gitconfig
83 lines (83 loc) · 2.25 KB
/
alias.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
[alias]
alias = !sh -c 'cat ~/git/github.com/sharils/home/alias.gitconfig'
a = add
a3 = apply --3way
ap = add --patch
au = add --update
b = !sh -c 'git config --get remote.origin.url | grep '^[email protected]' >/dev/null && gh repo view --web'
bb = bisect bad
bg = bisect good
bl = blame
br = bisect reset
bs = bisect start
bv = bisect view --patch --stat
c = commit
cC = commit --reuse-message
ca = commit --amend
cam = commit --all --message
cb = branch
cbc = !sh -c 'git branch --show-current | tr -d [:space:] | pbcopy && pbpaste'
ce = commit --amend --no-edit
ceF = commit --edit --file=.git/COMMIT_EDITMSG
cf = commit --fixup
cg = config --global
cl = clean --force
cld = clean --force -d
cu = config --get remote.origin.url
cm = commit --message
cma = !sh -c 'git commit --message \"Add $0 $*\"'
cmc = !sh -c 'git commit --message \"Change $0 $*\"'
cmd = !sh -c 'git commit --message \"Remove $0 $*\"'
cmf = !sh -c 'git commit --message \"Fix $0 $*\"'
cmr = !sh -c 'git commit --message \"Refactor $0 $*\"'
cmw = !sh -c 'git commit --allow-empty --message \"WIP: $0 $*\"'
cmx = !sh -c 'git commit --message \"Execute $0 $*\"'
co = checkout
co- = checkout -
cod = checkout develop
com = checkout main
coo = checkout --ours
cop = checkout --patch
cot = checkout --theirs
cr = revert
crn = !sh -c 'git revert --no-edit $0 && git revert --no-commit @ && git reset @'
cp = cherry-pick
cw = commit --amend --only
cz = stash
cza = stash apply --index
czp = stash pop --index
czw = stash push --keep-index
czz = stash push
d = diff
ds = diff --staged
dt = difftool
f = fetch
g = grep
gu = grep '^[<\\|=>]\\{7\\}'
l = log --graph --oneline
lS = log --graph --oneline --color-words --patch --pickaxe-regex -S
mb = merge-base
mt = mergetool
p = push
pf = push --force
po = push origin
pod = push --set-upstream origin develop
pof = push --force origin
pom = push origin main
r = rebase
ra = rebase --abort
ro = rebase --onto
rr = rebase --continue
rs = rebase --skip
s = status
t = tag
tam = tag --annotate --message
t1 = !sh -c 'git tag --list --sort -taggerdate | head -n1 | pbcopy && pbpaste'
tl = tag --list --sort taggerdate
u = reset
uh = reset --hard
um = reset --merge
up = reset --patch
us = reset @
v = show
y = stash