mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-01-22 07:33:30 +01:00
69 lines
1.9 KiB
Text
69 lines
1.9 KiB
Text
# This is Git's per-user configuration file.
|
|
[user]
|
|
name = Eric Teunis de Boone
|
|
email = ericteunis@deboone.nl
|
|
|
|
[push]
|
|
default = current
|
|
|
|
[core]
|
|
excludesfile = ~/.config/git/ignore_global
|
|
attributesfile = ~/.config/git/attributes
|
|
|
|
# Treat spaces before tabs and all kinds of trailing whitespace as an error.
|
|
# [default] trailing-space: looks for spaces at the end of a line
|
|
# [default] space-before-tab: looks for spaces before tabs at the beginning of a line
|
|
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
|
|
|
|
# Speed up commands involving untracked files such as `git status`.
|
|
# https://git-scm.com/docs/git-update-index#_untracked_cache
|
|
untrackedCache = true
|
|
|
|
[color]
|
|
ui = auto
|
|
|
|
[color "status"]
|
|
# use different color than untracked and unmerged paths have
|
|
changed = yellow
|
|
|
|
[merge]
|
|
conflictstyle = diff3
|
|
|
|
# Include summaries of merged commits in newly created merge commit messages
|
|
log = true
|
|
|
|
[branch]
|
|
autosetuprebase = always
|
|
|
|
[diff]
|
|
mnemonicPrefix = true
|
|
tool = vimdiff
|
|
# Detect renames and copies
|
|
renames = copies
|
|
|
|
[alias]
|
|
# Short Fancy Logs
|
|
lg1 = 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(bold yellow)%d%C(reset)'
|
|
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
|
|
lg = !"git lg1"
|
|
lga = !"git lg --all"
|
|
|
|
s = status --short
|
|
st = status
|
|
|
|
pushf = push --force-with-lease # Look mom, no --force
|
|
|
|
dif = diff
|
|
diffc = diff --cached
|
|
difc = diff --cached
|
|
|
|
alias = "! git config --get-regexp ^alias\\. "
|
|
|
|
tags = tag -l
|
|
branches = branch --all
|
|
remotes = remote --verbose
|
|
|
|
# Overwrite from local gitconfig files
|
|
[include]
|
|
path = ~/.gitconfig.local
|
|
path = ~/.config/git/config.local
|