dotfiles/system/.config/git/config
Severin Kaderli 0b01f58531
Update git configuration
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2020-06-27 14:59:21 +02:00

79 lines
No EOL
1.6 KiB
Text

# SCRIPT NAME:
# .config/git/config
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This is my configuration for Git.
#
# USAGE:
# This file is automatically used by Git.
[core]
ignoreCase = false
[user]
name = Severin Kaderli
email = severin@kaderli.dev
signingkey = F419F8835B72F0C4
[alias]
# 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
# Gets submodules when cloning repositories
cl = clone --recurse-submodules -j8
# Shortcut for status
s = status
# Add all files
a = add --all
# Create a commit and sign it off
c = commit -s -S
# Push to the master branch of the origin remote
p = push --follow-tags
# Tag the latest commit
t = !sh -c 'git tag -a $1 -m $1' -
# Shortcut for diff
d = diff
[color]
# Activate color use in git commands
ui = auto
[core]
editor = vim
autocrlf = input
[pull]
rebase = false
[push]
default = current
[url "git@gitlab.com:severinkaderli/"]
insteadOf = gl:
[url "git@git.kaderli.dev:severinkaderli/"]
insteadOf = g:
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[credential]
helper = cache --timeout 7200
[includeif "gitdir:~/work/"]
path = ~/.config/git/config.work