-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
33 lines (27 loc) · 878 Bytes
/
.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
[user]
email = [email protected]
name = suhail
[alias]
# one-line log
l = log --pretty=format:"%C(yellow)%h\\ %ad%C(green)%d\\ %Creset%s%C(yellow)\\ [%cn]" --decorate --date=short
a = add
ap = add -p
c = commit --verbose
ca = commit -a --verbose
cm = commit -m
cam = commit -a -m
m = commit --amend --verbose
d = diff
ds = diff --stat
dc = diff --cached
s = status -s
co = checkout
cob = checkout -b
re = remote -v
# 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/--'"
ba = branch --sort=-committerdate
b = "!git branch --sort=-committerdate | grep -v archive"
# list aliases
la = "!git config -l | grep alias | cut -c 7-"
p = pull --rebase