-
Notifications
You must be signed in to change notification settings - Fork 5
/
gitconfig.erb
27 lines (27 loc) · 911 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
[user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
signingkey = <%= print("Your PGP key: "); STDOUT.flush; STDIN.gets.chomp %>
[alias]
co = checkout
lg = <%= "log --graph --pretty=format:'%Cgreen%h%Creset %C(bold blue)<%an>%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(bold blue)%GS' --abbrev-commit" %>
pgp = config --global commit.gpgsign true
[color]
diff = auto
status = auto
branch = auto
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
editor = vim
autocrlf = input
[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 %>
token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>
[push]
default = simple
[url "https://"]
insteadOf = git://