nivertius-git-rc/.gitconfig
2017-02-05 14:41:05 +01:00

52 lines
1.1 KiB
INI

# put [user] (name, email) into ~/.gitlocal
[include]
path = .gitlocal
[color]
branch = auto
ui = auto
diff = auto
grep = auto
interactive = auto
showBranch = auto
status = auto
[core]
excludesFile = ~/.gitignore_global
whitespace = trailing-space space-before-tab
[push]
default = simple
[alias]
st = status -s -b
branches = branch -a
tags = tag
stashes = stash list
remotes = remote -v
precommit = diff --diff-algorithm=minimal -w
interactive = add --patch
diffdir = difftool --dir-diff
graph = log --graph --abbrev-commit --decorate --date=relative --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)' --all
stage = add
unstage = reset -q HEAD --
discard = checkout --
uncommit = reset --mixed HEAD~
amend = commit --amend
[diff]
compactionHeuristic = true
indentHeuristic = true
algorithm = histogram
[difftool]
prompt = false
[gc]
autoDetach = false
[interactive]
diffFilter = diff-highlight
[stash]
showPatch = true
[rebase]
autostash = true
[commit]
verbose = true