forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig.erb
38 lines (38 loc) · 1.24 KB
/
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
[user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[color]
diff = always
status = auto
branch = auto
ui = auto
[pager]
diff =
[merge]
tool= vimdiff
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
editor = vim
autocrlf = input
pager = less -FXR
[apply]
whitespace = nowarn
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[github]
user = <%= print("GitHub Username: "); STDOUT.flush; STDIN.gets.chomp %>
[alias]
ca = commit -a
cav = commit -av
st = status
br = branch
co = checkout
lol = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
lola = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit --all
lolh = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit -n 13
lolah = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit -n 13 --all
ls = ls-files
p4m = mergetool --tool=p4merge
[color "diff"]
new = blue
old = red bold