-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
54 lines (49 loc) · 1.48 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
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = cyan
[color "diff"]
meta = yellow
frag = cyan # Lines infos
old = red # Deletions
new = green # Additions
whitespace = red reverse
[color "status"]
added = green
changed = yellow
untracked = red
[help]
# Automatically correct and execute mistyped commands
autocorrect = 1
[alias]
a = add
all = add .
amend = commit --amend
bnm = branch --no-merged
br = branch
brm = branch -D
cached = diff --cached
ci = commit
ck = checkout
ckb = checkout -b
cp = cherry-pick
d = diff
file-history = log -p -M --follow --stat --
find-by-message = "!f() { git log --pretty=format:'* %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --grep=$1; }; f"
hard-reset = reset --hard HEAD~
impact = diff --stat --color
lg = log --pretty=format:'* %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
lgd = log -p
out-all = checkout -- .
soft-reset = reset HEAD~
st = status
tag-date = for-each-ref --sort=-taggerdate --count=10 --format '%(tag) -- %(taggerdate:short)' refs/tags
tree = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --graph --all
puf = push --force-with-lease
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase -i
rbm = rebase master