Make gitconfig a template
This commit is contained in:
parent
18d3e36d03
commit
621c33244a
2 changed files with 39 additions and 44 deletions
|
|
@ -1,44 +0,0 @@
|
|||
[color]
|
||||
ui = true
|
||||
branch = always
|
||||
status = always
|
||||
interactive = always
|
||||
diff = true
|
||||
[user]
|
||||
name = Maximilian Friedersdorff
|
||||
email = max@friedersdorff.com
|
||||
signingkey = F5E7FCB3
|
||||
[core]
|
||||
editor = vim
|
||||
excludesfile = /home/max/.gitignore
|
||||
[merge]
|
||||
tool = diffuse
|
||||
ff = true
|
||||
[push]
|
||||
default = simple
|
||||
[alias]
|
||||
lg = log --graph --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short
|
||||
hist = log --graph --full-history --all --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short
|
||||
struct = log --graph --full-history --all --pretty=format:'%ad %s %Creset %C(yellow)%d%Creset' --date=short --simplify-by-decoration
|
||||
co = checkout
|
||||
ci = commit
|
||||
st = status
|
||||
br = branch
|
||||
df = diff
|
||||
commit = commit -S
|
||||
vh = verify-commit HEAD
|
||||
vc = verify-commit
|
||||
vt = tag -v
|
||||
tag = tag -s
|
||||
t = tag -s
|
||||
alias = "!req=$'\\033[0;31m=\\033[0m'; git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e \"s/\\ /\t$req\\ /\""
|
||||
r = rebase
|
||||
m = merge
|
||||
pa = !git remote | xargs -L1 git push --all
|
||||
[pull]
|
||||
rebase = false
|
||||
[sendemail]
|
||||
smtpserver = mail.friedersdorff.com
|
||||
smtpuser = max
|
||||
smtpencryption = tls
|
||||
smtpserverport = 587
|
||||
39
dot_gitconfig.tmpl
Normal file
39
dot_gitconfig.tmpl
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
[color]
|
||||
ui = true
|
||||
branch = always
|
||||
status = always
|
||||
interactive = always
|
||||
diff = true
|
||||
[user]
|
||||
name = Maximilian Friedersdorff
|
||||
email = {{ .email | quote }}
|
||||
[core]
|
||||
editor = nvim
|
||||
excludesfile = /home/max/.gitignore
|
||||
[merge]
|
||||
tool = diffuse
|
||||
ff = true
|
||||
[push]
|
||||
default = simple
|
||||
[alias]
|
||||
lg = log --graph --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short
|
||||
hist = log --graph --full-history --all --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short
|
||||
struct = log --graph --full-history --all --pretty=format:'%ad %s %Creset %C(yellow)%d%Creset' --date=short --simplify-by-decoration
|
||||
co = checkout
|
||||
ci = commit
|
||||
st = status
|
||||
br = branch
|
||||
df = diff
|
||||
commit = commit -S
|
||||
vt = tag -v
|
||||
tag = tag -s
|
||||
t = tag -s
|
||||
alias = "!req=$'\\033[0;31m=\\033[0m'; git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e \"s/\\ /\t$req\\ /\""
|
||||
pa = !git remote | xargs -L1 git push --all
|
||||
[pull]
|
||||
rebase = false
|
||||
[sendemail]
|
||||
smtpserver = mail.friedersdorff.com
|
||||
smtpuser = max
|
||||
smtpencryption = tls
|
||||
smtpserverport = 587
|
||||
Loading…
Add table
Reference in a new issue