forked from ryanb/dotfiles
/
gitconfig.erb
31 lines (30 loc) · 871 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
[alias]
co = checkout
ci = commit
cm = commit -m
dc = diff --cached
st = status
pu = remote update --prune
aa = add --all
l = log --graph --abbrev-commit --date=relative
bro = !git branch -r | grep origin
sl = stash list
standup = log --since="25.hours.ago" --author Adam
[user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[color]
diff = auto
status = auto
branch = auto
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
editor = vi
autocrlf = input
[apply]
whitespace = nowarn
[format]
pretty=format:%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)(%an)%Creset
[github]
user = <%= print("GitHub Username: "); STDOUT.flush; STDIN.gets.chomp %>
token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>