-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
69 lines (60 loc) · 1.37 KB
/
gitconfig
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
[alias]
ap = add -p
b = branch
bd = delete-branch
bm = branch --merged
co = checkout
cm = commit
cma = commit --amend
df = diff
dfc = diff --cached
ri = rebase --interactive
rim = rebase --interactive master
st = status
[apply]
whitespace = nowarn
[color]
branch = auto
diff = auto
status = 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
autocrlf = false
pager = less
[merge "merge-rails-schema"]
name = Use newer Rails schema version
driver = "ruby -e '\n\
system %(git), %(merge-file), %(--marker-size=%L), %(%A), %(%O), %(%B)\n\
b = File.read(%(%A))\n\
b.sub!(/^<+ .*\\nActiveRecord::Schema\\.define.:version => (\\d+). do\\n=+\\nActiveRecord::Schema\\.define.:version => (\\d+). do\\n>+ .*/) do\n\
%(ActiveRecord::Schema.define(version: #{[$1, $2].max}) do)\n\
end\n\
File.open(%(%A), %(w)) {|f| f.write(b)}\n\
exit 1 if b.include?(%(<)*%L)'"
[mirror]
summary = true
[pull]
ff = only
[push]
autoSetupRemote = true
default = simple
[rerere]
enabled = true
# Include usernames, credentials, tokens, etc.
[include]
path = ~/.gitconfig.local
[init]
defaultBranch = main