-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgitconfig
89 lines (51 loc) · 1.38 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
82
83
84
85
86
87
88
89
[user]
email = [email protected]
name = Guilherme Mangabeira Gregio
[alias]
c = commit -am
s = status -s
p = push
df = diff --color --color-words --abbrev
co = checkout
lg = log --graph --pretty=format:'%Cred%h%Creset %Cgreen(%cr) %C(yellow)%d%Creset - %s %C(bold blue)<%an>%Creset'
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
pb = !"git fetch --all -p; git branch -vv | grep \": gone]\" | awk '{ print $1 }' | xargs -n 1 git branch -D"
[color]
diff = auto
branch = auto
status = auto
log = auto
ui = always
[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
[core]
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
editor = vim
[credential]
helper = cache --timeout=31536000
[diff]
tool = vimdiff
[difftool "diffmerge"]
cmd = diffmerge \"$LOCAL\" \"$REMOTE\"
[merge]
tool = vimdiff
[mergetool]
keepBackup = false
[mergetool "diffmerge"]
cmd = "diffmerge --merge --result=\"$MERGED\" \"$LOCAL\" \"$(if test -f \"$BASE\"; then echo \"$BASE\"; else echo \"$LOCAL\"; fi)\" \"$REMOTE\""
trustExitCode = true
[push]
default = current