-
Notifications
You must be signed in to change notification settings - Fork 5
/
gitconfig
76 lines (56 loc) · 1.34 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
# vim: set ft=dosini :
[user]
name = gedi
signingkey = 56604CDCCC201556
email = [email protected]
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
added = green
changed = yellow
untracked = red
[commit]
# sign all commits
gpgsign = true
[diff]
tool = difftastic
[merge]
tool = vimdiff
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[core]
editor = vim
# default patterns to ignore, .idea and etc.
excludesfile = ~/.gitignore
[apply]
whitespace = nowarn
[pull]
# when doing 'git pull', rebase instead of merging
rebase = true
[rebase]
# stash, rebase, pop - since git v2.6.0
autostash = true
[github]
user = l3pp4rd
[alias]
unstage = reset HEAD
# rebase upstream commits, since git v1.7.0
prepare = rebase -i @{u}
# nice format for a commit history log
hist = log --graph --pretty=format:\"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(blue)[%an]%Creset\" --abbrev-commit --date=relative
# show list of contributors in descending order by number of commits
rank = shortlog -sn --no-merges
# log formats
changes = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\" --name-status
changelog = log --graph --pretty=format:\"%Cred%h%Creset - %s %C(blue)[%an]%Creset\"