-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
81 lines (65 loc) · 1.85 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[user]
email =
name =
signingkey =
[push]
default = current
followTags = true
[commit]
gpgsign = true
[gpg]
program = gpg
[pager]
branch = false
[diff]
tool = vimdiff
[difftool]
prompt = false
[tag]
forceSignAnnotated = true
[alias]
stag = tag -s
lg1 = log --graph --abbrev-commit --decorate --date=relative --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
lg3 = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lg-dennis = log --pretty=format:"%h|%x09|%an|%x09|%ad|%x09|%s" --no-merges
lg-d = lg-dennis
lg = !"git lg3"
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
st = status
di = diff
ci = commit
br = branch
co = checkout
pl = pull
ps = push
last = log -1 HEAD
gr1 = log --graph --oneline
gr2 = log --graph --pretty
graph = log --graph --pretty
vshow = "!f() { readonly rev=${1-HEAD}; git difftool ${rev}~ $rev; }; f"
tags = tag -n99
; Src: http://nathanhoad.net/how-to-colours-in-git
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[merge]
ff = true
[filter "rcs-keywords"]
clean = ~/.git_filters/rcs-keywords.clean
smudge = ~/.git_filters/rcs-keywords.smudge %f
[core]
excludesfile = ~/.gitignore_global