-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
113 lines (101 loc) · 3.42 KB
/
Copy path.gitconfig
File metadata and controls
113 lines (101 loc) · 3.42 KB
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
105
106
107
108
109
110
111
112
113
[user]
name = letournel
email = 4dr13n.l370urn3l@gmail.com
[alias]
# most used
co = checkout
cob = checkout -b
st = status -sb
adp = add -p
ci = commit
br = branch
bra = branch -a
brd = branch -d
brdm = "!git branch --merged | grep -v '*' | grep -v 'master' | xargs -r -n 1 git branch -d"
brD = branch -D
rpo = remote prune origin
pushbr = push origin
undo = reset --soft HEAD^
amend = commit --amend
logc = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
logp = log --graph --pretty='format:%C(red)%d%C(reset) %C(yellow)%h%C(reset) %ar %C(green)%aN%C(reset) %s'
logs = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
logt = log --stat --since='1 Day Ago' --graph --pretty=oneline --abbrev-commit --date=relative
rank = shortlog -sn --no-merges
# branch
b = branch
bc = checkout -b
bl = branch -v
bL = branch -av
bx = branch -d
bX = branch -D
bm = branch -m
bM = branch -M
bs = show-branch
bS = show-branch -a
# checkout
co = checkout
co0 = checkout HEAD --
# fetch
f = fetch
fm = pull
fo = fetch origin
# merge
m = merge
mom = merge origin/master
# push
p = push
pa = push --all
pt = push --tags
# rebase
r = rebase
ra = rebase --abort
rc = rebase --continue
ri = rebase --interactive
rs = rebase --skip
rom = rebase origin/master
# commit
c = commit -v
ca = commit --all -v
cm = commit --message
cam = commit --all --message
camend = commit --amend --reuse-message HEAD
cundo = reset --soft "HEAD^"
cp = cherry-pick
# diff
d = diff # Diff working dir to index
ds = diff --staged # Diff index to HEAD
dc = diff --staged # Diff index to HEAD
dh = diff HEAD # Diff working dir and index to HEAD
hub = browse
hubd = compare
# index
s = status
a = add
ia = add
ir = reset
# log
l = log --topo-order --pretty=format:'%C(yellow)%h %C(cyan)%cn %C(blue)%cr%C(reset) %s'
ls = log --topo-order --stat --pretty=format:'%C(bold)%C(yellow)Commit:%C(reset) %C(yellow)%H%C(red)%d%n%C(bold)%C(yellow)Author:%C(reset) %C(cyan)%an <%ae>%n%C(bold)%C(yellow)Date:%C(reset) %C(blue)%ai (%ar)%C(reset)%n%+B'
ld = log --topo-order --stat --patch --full-diff --pretty=format:'%C(bold)%C(yellow)Commit:%C(reset) %C(yellow)%H%C(red)%d%n%C(bold)%C(yellow)Author:%C(reset) %C(cyan)%an <%ae>%n%C(bold)%C(yellow)Date:%C(reset) %C(blue)%ai (%ar)%C(reset)%n%+B'
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lga = log --topo-order --all --graph --pretty=format:'%C(yellow)%h %C(cyan)%cn%C(reset) %s %C(red)%d%C(reset)%n'
lm = log --topo-order --pretty=format:'%s'
lh = shortlog --summary --numbered
llf = fsck --lost-found
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
# remote
re = remote
rel = remote --verbose
rea = remote add
rex = remote rm
rem = remote rename
[push]
default = current
[color]
ui = true
[status]
showUntrackedFiles = all
[core]
editor = vim