Add git configuration for work

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-05-27 20:31:27 +02:00
parent f527c444af
commit e901d3d45a
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
2 changed files with 27 additions and 3 deletions

View file

@ -11,13 +11,14 @@
# This file is automatically used by Git.
[user]
email = severin@kaderli.dev
name = Severin Kaderli
email = severin@kaderli.dev
signingkey = F419F8835B72F0C4
[alias]
# Display the history of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
# Display a prettier log
# https://medium.com/@lucaspenzeymoog/prettier-git-logs-one-graph-at-a-time-d3790a753e6b
l = "log --graph --abbrev-commit --decorate --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(auto)%d%C(reset)'"
# Update submodules when pulling
pl = !git pull && git submodule update --remote --merge
@ -61,3 +62,6 @@
[credential]
helper = cache --timeout 7200
[includeif "gitdir:~/work/"]
path = ~/.config/git/config.work

View file

@ -0,0 +1,20 @@
# SCRIPT NAME:
# .config/git/config.work
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This is my work configuration for Git.
#
# USAGE:
# This file is automatically used by Git when inside a subfolder of ~/work.
[user]
name = Worker Severin
email = severin@work.ch
signingkey = ""
[alias]
# Create a commit and sign it off
c = commit