-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
65 lines (57 loc) · 1.88 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
55
56
57
58
59
60
61
62
63
64
65
[user]
name = Kenny Chen
email = [email protected]
username = kennyjchen
signingKey = 89D26BECC9B44BEE
[core]
editor = nvim
excludesFile = ~/.gitignore_global
filemode = false
[commit]
gpgSign = true
[color]
ui = auto
[alias]
# Feature improving aliases
rank = shortlog -sn --no-merges
untracked = status --short --untracked-files
aliases = !git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ /
# Log
lg = log --graph --color --abbrev-commit --decorate --pretty=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %s %C(dim white)<%an>%Creset %C(bold yellow)%d%C(reset)'
lga = log --all --graph --color --abbrev-commit --decorate --pretty=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %s %C(dim white)<%an>%Creset %C(bold yellow)%d%C(reset)'
# Shortening aliases
c = checkout
ch = checkout
chm = checkout master
cm = commit
cam = commit --amend
s = status
b = branch
ba = branch -a
t = tag
p = pull
prb = pull --rebase
a = add -A
f = fetch
sh = show
d = diff
dfl = diff --name-only
db = branch -d
dbo = push origin --delete
cp = cherry-pick
cpn = cherry-pick --no-commit
flist = ls-tree -r --name-only HEAD
untrack = rm -r --cached
ap = apply --ignore-space-change --ignore-whitespace
l = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short -10
la = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
lb = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short --first-parent -10
lba = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short --first-parent
lmy = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short --author=Chabanov -10
lamy = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short --author=Chabanov
log3 = log -n 3
log5 = log -n 5
log10 = log -n 10
files = ls-tree -r --name-only HEAD
[push]
default = simple