-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
56 lines (44 loc) · 1.5 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
[push]
default = simple
[user]
name = Babos Csaba
email = [email protected]
[core]
editor = vim
; indenting with space
whitespace = -space-before-tab,tab-in-indent,trailing-space
; indenting with tab
;whitespace = -space-before-tab,trailing-space,indent-with-non-tab,space-before-tab,tabwidth=4
excludesfile = ~/.gitignore-global
attributesfile = ~/.gitattributes-global
[merge]
tool = vimdiff
[diff "exif"]
; you have to install exiftool first
textconv = exiftool -s2 -common --filename
[color]
ui = auto
[alias]
sh = show
; similar to: git log --decorat --pretty=oneline
lg1 = 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
lg2 = 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
; lg = "!git-pretty-log"
lg = !git lg1
lga = !git lg --all
; recent commits
rc = !git lg -30
rca = !git rc --all
di = diff
dc = diff --cached
st = status
; it is like: git rm -r --cached foo && git add foo
aa = add --all
; unstage file(s)
unstage = reset HEAD --
ci = commit
amend = commit --amend
br = branch
co = checkout
tg = tag
pom = push origin master