Initial commit: Python dotfiles system
This commit is contained in:
49
templates/git/gitconfig.j2
Normal file
49
templates/git/gitconfig.j2
Normal file
@@ -0,0 +1,49 @@
|
||||
[user]
|
||||
name = {{ git_name | default("Your Name") }}
|
||||
email = {{ git_email | default("your.email@example.com") }}
|
||||
|
||||
[core]
|
||||
editor = {{ editor | default("vim") }}
|
||||
autocrlf = input
|
||||
excludesfile = ~/.gitignore_global
|
||||
|
||||
[push]
|
||||
default = simple
|
||||
|
||||
[pull]
|
||||
rebase = false
|
||||
|
||||
[alias]
|
||||
st = status
|
||||
co = checkout
|
||||
br = branch
|
||||
ci = commit
|
||||
lg = log --oneline --graph --decorate
|
||||
unstage = reset HEAD --
|
||||
|
||||
{% if machine == 'desktop' %}
|
||||
[diff]
|
||||
tool = meld
|
||||
{% endif %}
|
||||
|
||||
[color]
|
||||
ui = auto
|
||||
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
|
||||
Reference in New Issue
Block a user