dotfiles/config/gitconfig
2018-12-17 11:19:50 +00:00

23 lines
No EOL
878 B
Text

[user]
{{if eq .Env.USER "qgodefro"}}
name = "Quentin Godefroid"
email = "quentin.godefroid@corp.ovh.com"
signingkey = 9E5CBE8D
{{else if eq .Env.USER "quentin"}}
name = "Quentin Godefroid"
email = "quentin.git@godefroid.eu"
{{else if eq .Env.USER "hactar"}}
name = "Hactarus"
email = "hactarus.git@cresi.be"
{{else}}
name = "Hactarus"
email = "hactarus.git@cresi.be"
{{end}}
[alias]
pushdev = !git push --set-upstream origin "`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`:dev/{{ .Env.USER }}/`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`"
graph = !git log --oneline --graph --abbrev-commit --decorate --date=relative --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)\n'
[push]
default = simple
[commit]
gpgsign = true