Add git configuration for work
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
f527c444af
commit
e901d3d45a
2 changed files with 27 additions and 3 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue