/
gitconfig.erb
74 lines (74 loc) · 2.07 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[user]
name = <%= print("Git name"); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Git email"); STDOUT.flush; STDIN.gets.chomp %>
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[alias]
st = status
ci = commit
co = checkout
br = branch
di = diff
dc = diff --cached
ignored = "!git ls-files --others --exclude-standard"
datetag = !git tag `date \"+%Y%m%d%H%M\"`
unadd = reset HEAD
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %an' --abbrev-commit --date=relative
up = !sh -c 'git pull --rebase --prune && git log --pretty=format:\"%Cred%ae %Creset- %C(yellow)%s %Creset(%ar)\" HEAD@{1}..'
amend = commit --amend
aa = add --all
head = !git l -1
h = !git head
r = !git l -20
ra = !git r --all
ff = merge --ff-only
pullff = pull --ff-only
l = log --graph --abbrev-commit --date=relative
la = !git l --all
div = divergence
gn = goodness
gnc = goodness --cached
fa = fetch --all
pom = push origin master
up = !sh -c 'git pull --rebase --prune && git log --pretty=format:\"%Cred%ae %Creset- %C(yellow)%s %Creset(%ar)\" HEAD@{1}..'
[merge]
tool = opendiff
summary = true
[branch]
autosetupmerge = true
[diff]
color = auto
rename = copy
[pager]
color = true
[status]
color = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
excludesfile = ~/.gitignore
[gui]
fontui = -family Consolas -size 13 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family Consolas -size 13 -weight normal -slant roman -underline 0 -overstrike 0
[github]
user = <%= print("Github username: "); STDOUT.flush; STDIN.gets.chomp %>
token = <%= print("API Token: "); STDOUT.flush; STDIN.gets.chomp %>
password = <%= print("Password: "); STDOUT.flush; STDIN.gets.chomp %>
[push]
default = current
[diff "ruby"]
funcname = ^ *\\(\\(class\\|module\\|def\\) .*\\)