-
Notifications
You must be signed in to change notification settings - Fork 2
/
gitconfig.template
38 lines (37 loc) · 934 Bytes
/
gitconfig.template
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
[user]
name = {{name}}
email = {{email}}
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd, %cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=local
pr = !bash -c 'source $HOME/.dotfiles/scripts/github && github_pr'
repo = !bash -c 'source $HOME/.dotfiles/scripts/github && github_repo'
from-pr = !bash -c 'source $HOME/.dotfiles/scripts/github && github_from_pr $0 $@'
[color]
diff = auto
status = auto
branch = auto
[core]
editor = vim
autocrlf = input
excludesfile = ~/.gitignore
[apply]
whitespace = warn
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[credential]
helper = osxkeychain
[diff]
tool = opendiff
wsErrorHighlight = all
[push]
default = simple
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[init]
defaultBranch = main