mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-01-22 15:33:32 +01:00
[git] update config and move some commands to config.local
This commit is contained in:
parent
b05492cb31
commit
4466fb4f0f
1 changed files with 27 additions and 7 deletions
34
git/config
34
git/config
|
@ -2,29 +2,45 @@
|
||||||
[user]
|
[user]
|
||||||
name = Eric Teunis de Boone
|
name = Eric Teunis de Boone
|
||||||
email = ericteunis@deboone.nl
|
email = ericteunis@deboone.nl
|
||||||
[gui]
|
|
||||||
editor = geany
|
|
||||||
[push]
|
[push]
|
||||||
default = matching
|
default = current
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
excludesfile = ~/.config/git/ignore_global
|
excludesfile = ~/.config/git/ignore_global
|
||||||
attributesfile = ~/.config/git/attributes
|
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]
|
[color]
|
||||||
ui = auto
|
ui = auto
|
||||||
|
|
||||||
[color "status"]
|
[color "status"]
|
||||||
# use different color than untracked and unmerged paths have
|
# use different color than untracked and unmerged paths have
|
||||||
changed = yellow
|
changed = yellow
|
||||||
|
|
||||||
[merge]
|
[merge]
|
||||||
conflictstyle = diff3
|
conflictstyle = diff3
|
||||||
|
|
||||||
|
# Include summaries of merged commits in newly created merge commit messages
|
||||||
|
log = true
|
||||||
|
|
||||||
[branch]
|
[branch]
|
||||||
autosetuprebase = always
|
autosetuprebase = always
|
||||||
|
|
||||||
[diff]
|
[diff]
|
||||||
mnemonicPrefix = true
|
mnemonicPrefix = true
|
||||||
tool = vimdiff
|
tool = vimdiff
|
||||||
[diff "pandoc"]
|
# Detect renames and copies
|
||||||
textconv = pandoc --to=rst
|
renames = copies
|
||||||
[diff "pdf"]
|
|
||||||
textconv = pdf2txt
|
|
||||||
[alias]
|
[alias]
|
||||||
# Short Fancy Logs
|
# 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)'
|
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)'
|
||||||
|
@ -43,6 +59,10 @@
|
||||||
|
|
||||||
alias = "! git config --get-regexp ^alias\\. "
|
alias = "! git config --get-regexp ^alias\\. "
|
||||||
|
|
||||||
|
tags = tag -l
|
||||||
|
branches = branch --all
|
||||||
|
remotes = remote --verbose
|
||||||
|
|
||||||
# Overwrite from local gitconfig files
|
# Overwrite from local gitconfig files
|
||||||
[include]
|
[include]
|
||||||
path = ~/.gitconfig.local
|
path = ~/.gitconfig.local
|
||||||
|
|
Loading…
Reference in a new issue