-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit
53 lines (40 loc) · 1.13 KB
/
git
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
[http]
sslVerify = false
[user]
email = [email protected]
name = Mike Ludwig
[credential]
helper = cache
[color]
ui = auto
[color "diff"]
old = red bold
new = blue bold
[alias]
# list commits
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lg = "!git 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"
a = add
aa = add -A .
c = commit -m
ca = commit --amend
p = push
po = push origin
pom = push origin master
d = diff
ds = diff --stat
dc = diff --cached
s = status -s
co = checkout
b = branch
# search files
gr = grep -Ii
st = stash
sl = stash list
sp = stash pop
fl = log -u
# list aliases
la = "!git config -l | grep alias | cut -c 7-"
# history search - prints changes that contain the string (-S)
hs = log --pickaxe-regex -p --color-words -S