-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot-gitconfig
50 lines (49 loc) · 1.74 KB
/
dot-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
[user]
name = Alexander Bacho
email = [email protected]
[core]
editor = vim
autocrlf = input
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[alias]
s = status
b = branch
bv = branch -vv
ba = branch -a
bav = branch -a -vv
co = checkout
cod = checkout -- *
clf = clean -f
a = add
ap = add -p
d = diff
da = diff HEAD
ds = diff --staged
c = commit
cv = commit -v
ca = commit --amend
can = commit --amend --no-edit
sh = show
shi = show --ignore-space-change
l = log --graph --branches --remotes --tags --pretty='format:%C(yellow)%h %C(green)%ai %C(bold blue)%an %C(red)%d%C(reset) %s' -30
ll = log --graph --branches --remotes --tags --pretty='format:%C(yellow)%h %C(green)%ai %C(bold blue)%an %C(red)%d%C(reset) %s'
la = log --graph --branches --remotes --tags --pretty='format:%C(yellow)%h %C(green)%ai %C(bold blue)%an %C(red)%d%C(reset) %s' --all
lp = log --graph --branches --remotes --tags --pretty='format:%C(yellow)%h %C(green)%ai %C(bold blue)%an %C(red)%d%C(reset) %s' --patch
lg = log --oneline --decorate --all --graph
st = stash
stl = stash list
stp = stash pop
stc = stash clear
shs = stash show -p
up = pull --rebase
type = cat-file -t
dump = cat-file -p
ignored = ls-files --exclude-standard --ignored --others
authors = "!git log --pretty=format:%aN | sort | uniq -c | sort -rn"
rlast = TMPGITHASH=`git reflog -n 2 | sed -n '2p' | awk '{print $1;}'` && git reset $TMPGITHASH --hard
[push]
default = simple