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.
|
# This file is automatically used by Git.
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
email = severin@kaderli.dev
|
|
||||||
name = Severin Kaderli
|
name = Severin Kaderli
|
||||||
|
email = severin@kaderli.dev
|
||||||
signingkey = F419F8835B72F0C4
|
signingkey = F419F8835B72F0C4
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
# Display the history of the latest 20 commits
|
# Display a prettier log
|
||||||
l = log --pretty=oneline -n 20 --graph --abbrev-commit
|
# 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
|
# Update submodules when pulling
|
||||||
pl = !git pull && git submodule update --remote --merge
|
pl = !git pull && git submodule update --remote --merge
|
||||||
|
@ -61,3 +62,6 @@
|
||||||
|
|
||||||
[credential]
|
[credential]
|
||||||
helper = cache --timeout 7200
|
helper = cache --timeout 7200
|
||||||
|
|
||||||
|
[includeif "gitdir:~/work/"]
|
||||||
|
path = ~/.config/git/config.work
|
20
system/.config/git/config.work
Normal file
20
system/.config/git/config.work
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue