-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgitconfig.erb
35 lines (35 loc) · 920 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
31
32
33
34
35
[user]
name = <%= print("Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Email: "); STDOUT.flush; STDIN.gets.chomp %>
[push]
default = simple
autoSetupRemote = true
[alias]
co = checkout
quote-string = "!read -r l; printf \\\"!; printf %s \"$l\" | sed 's/\\([\\\"]\\)/\\\\\\1/g'; printf \" #\\\"\\n\" #"
prune-local = "!git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D #"
[color]
diff = auto
status = auto
branch = auto
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
editor = code --new-window --wait
autocrlf = input
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[apply]
whitespace = nowarn
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[credential]
helper = osxkeychain
[diff]
algorithm = minimal
[init]
defaultBranch = main
[pull]
rebase = false