forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 3
/
gitconfig.erb
46 lines (46 loc) · 1008 Bytes
/
gitconfig.erb
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
[user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[alias]
k = !gitk --all
g = !git gui
b = branch -a
s = status
[color]
diff = auto
status = auto
branch = 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
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
editor = vim
autocrlf = input
[branch]
autosetuprebase = always
[apply]
whitespace = nowarn
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%cr)%Creset
[github]
user = <%= print("GitHub Username: "); STDOUT.flush; STDIN.gets.chomp %>
[diff]
tool = mvim
[difftool "mvim"]
prompt = false
cmd = mvim -d -f $LOCAL $REMOTE
[merge]
tool = mvim
[mergetool "mvim"]
cmd = mvim -d -f -c "wincmd J" $MERGED $LOCAL $BASE $REMOTE