-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig##work.WLinux
executable file
·54 lines (52 loc) · 1.38 KB
/
.gitconfig##work.WLinux
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
[core]
autocrlf = input
safecrlf = true
trustctime = false
[alias]
ai = add --interactive
c = commit
cm = commit -m
am = commit -a -m
ca = commit --amend
caa = commit -a --amend -C HEAD
#reset
r = reset
r1 = reset HEAD^
r2 = reset HEAD^^
rh = reset --hard
rh1 = reset --hard HEAD^
rh2 = reset --hard HEAD^
#shortcuts
s = status
d = diff
a = add
rb = rebase
co = checkout
b = branch
l = log
f = fetch
m = merge
rmt = remote
p = pull
pp = push
cp = cherry-pick
gr = log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
#ll = log --pretty=format:%C(yellow)%h%Cred%d\ %Creset%s%Cblue\ [%cn] --decorate --stat
#ls = log --pretty=format:%C(yellow)%h%Cred%d\ %Creset%s%Cblue\ [%cn] --decorate
#lds = log --pretty=format:%C(yellow)%h\ %ad%Cred%d\ %Creset%s%Cblue\ [%cn] --decorate --date=short
#ld = log --pretty=format:%C(yellow)%h\ %ad%Cred%d\ %Creset%s%Cblue\ [%cn] --decorate --date=relative
#lc = !f() { git ll $1^..$1; }; f
#lnc = log --pretty=format:%h\ %s\ [%cn]
lg = log --graph --oneline --decorate --all
# la = !git config -l | grep alias | cut -c 7-[color]
[color]
ui = auto
branch = auto
diff = auto
status = auto
[branch]
autosetuprebase = always
[push]
default = matching
[include]
path = .gitconfig.local