forked from afgomez/dotfiles-very-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig.erb
30 lines (30 loc) · 933 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
[user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[color]
ui = auto
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
editor = subl -w
[apply]
whitespace = nowarn
[branch]
autosetuprebase = always
[grep]
lineNumber = true
[log]
date = relative
decorate = short
[merge]
ff = false
[github]
user = <%= print("GitHub Username: "); STDOUT.flush; STDIN.gets.chomp %>
[credential]
helper = osxkeychain
[help]
autocorrect = 1
[alias]
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignored = !git ls-files -v | grep "^[[:lower:]]"
standup = !"git log --reverse --branches --since=$(if [[ "Mon" == "$(date +%a)" ]]; then echo "last friday"; else echo "yesterday"; fi) --author=$(git config --get user.email) --format=format:'%C(cyan) %ad %C(yellow)%h %Creset %s %Cgreen%d' --date=local"