forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig.erb
40 lines (40 loc) · 1.18 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
39
40
[user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[alias]
co = checkout
cp = cherry-pick
commend = commit --amend --no-edit
pleasepush = push --force-with-lease
st = status --short --branch
stsh = stash --keep-index
staash = stash --include-untracked
staaash = stash --all
# common mis-spellings
dif = diff
lg = log
morelog = log --format=medium
mlog = morelog
grog = log --graph --abbrev-commit --decorate --all --format=format:"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)"
[color]
diff = auto
status = auto
branch = auto
ui = auto
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
editor = vi
autocrlf = false
[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 %>
[pretty]
githubmine = %h by %an about %cr%n%B
[push]
default = current
[rerere]
enabled = true