-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
36 lines (28 loc) · 1.04 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
[alias]
# Flow
a = add
ac = !git add . && git commit -am
cm = commit -m
cam = commit -a -m
# Diff
d = diff
ds = diff --stat
dc = diff --cached
# Status
s = status -s
# Branching
co = checkout
cob = checkout -b
# Push
po = push origin
pom = push origin master
# List branches sorted by last modified
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
# List aliases
la = "!git config -l | grep alias | cut -c 7-"
# Tree view
l1 = log --graph --abbrev-commit --decorate --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
l2 = 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
l = !"git l1"
[diff]
compactionHeuristic = true