-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
49 lines (49 loc) · 1.14 KB
/
dot_gitconfig.tmpl
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
[includeIf "gitdir:~/"]
path = .gitconfig-personal
[includeIf "gitdir:~/src/spotify/"]
path = .gitconfig-spotify
[core]
autocrlf = input
excludesfile = ~/.gitignore
[push]
default = simple
[alias]
st = status
diffc = diff --cached
ci = commit
br = branch
co = checkout
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
# Delete the remote version of the current branch
unpublish = "!git push origin :$(git branch-name)"
[svn]
rmdir = true
{{ if eq .chezmoi.os "linux" }}
[diff]
tool = meld
{{ end }}
[color]
ui = auto
[color.status]
untracked = cyan
unmerged = yellow
header = dim white
changed = magenta
tadded = green
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main
[gc]
autoDetach = false
pruneExpire = now
[credential]
helper = cache --timeout 3600
[safe]
directory = *