-
Notifications
You must be signed in to change notification settings - Fork 1
/
git-aliases.nix
82 lines (63 loc) · 1.45 KB
/
git-aliases.nix
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
let
log = "log --show-notes='*' --abbrev-commit --pretty=format:'%Cred%h %Cgreen(%aD)%Creset -%C(bold red)%d%Creset %s %C(bold blue)<%an>% cm%Creset' --graph";
in {
lc = "!git -c user.name='Lotte' -c user.email='[email protected]'";
cl = "clone";
co = "checkout";
cb = "checkout -b";
pc = "checkout -p";
s = "status -sb";
b = "branch";
ba = "branch -a";
bd = "branch -d";
bdd = "branch -D";
h = "show";
h1 = "show HEAD^";
h2 = "show HEAD^^";
h3 = "show HEAD^^^";
h4 = "show HEAD^^^^";
h5 = "show HEAD^^^^^";
d = "diff";
dch = "diff --cached";
l = log;
lp = "${log} --patch";
la = "${log} --all";
a = "add -p";
ad = "add";
mrm = "rm";
mrc = "rm --cached";
c = "commit";
cm = "commit -m";
cx = "commit --amend";
pcp = "cherry-pick";
m = "merge";
mnf = "merge --no-ff";
r = "reset";
rh = "reset --hard";
en = "revert";
rb = "rebase";
ri = "rebase -i";
rbc = "rebase --continue";
rba = "rebase --abort";
w = "push";
wf = "push -f";
wo = "push origin";
wu = "push -u";
v = "pull";
f = "fetch";
fa = "fetch --all";
rv = "remote -v";
ra = "remote add";
rp = "remote prune";
rpo = "remote prune origin";
rpa = "fetch --all --prune";
st = "stash";
sth = "stash show -p";
stl = "stash list";
std = "stash drop";
stp = "stash pop";
sta = "stash apply";
sms = "submodule sync --recursive";
smu = "submodule update --init --recursive";
bl = "blame";
}