From 0f4694507c4309fadfad9cadfbbd07058da2920f Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Fri, 30 Dec 2016 11:21:57 +0500 Subject: [git] Update config. --- files/.gitconfig | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'files') diff --git a/files/.gitconfig b/files/.gitconfig index a6bcf5c..a179549 100644 --- a/files/.gitconfig +++ b/files/.gitconfig @@ -27,16 +27,23 @@ kb = !sh -c 'gitk --branches' - lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative st = status -[push] - default = matching + addnw = !sh -c 'git diff --unified=0 --ignore-all-space --no-color "$@" | git apply --cached --ignore-whitespace --unidiff-zero -' + branch-name = "!git rev-parse --abbrev-ref HEAD" + publish = "!git push -u origin $(git branch-name)" [advice] statusHints = false [branch] autosetupmerge = always autosetuprebase = local +[rebase] + instructionFormat = %s [%an] {%ar} [help] autocorrect = 10 [credential] - helper = cache + helper = netrc [remote-hg] - hg-git-compat = true + hg-git-compat = true +[filter "tabs"] + ;clean = unexpand --tabs=4 --first-only +[gui] + tabsize = 4 -- cgit v1.2.3