From b713671e4122745f7fd1de525f8f86c7bb9143c0 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 14 May 2018 16:55:38 +0300 Subject: .gitconfig: add comments to git settings --- %HOME%/.gitconfig | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) (limited to '%HOME%') diff --git a/%HOME%/.gitconfig b/%HOME%/.gitconfig index ae90746..47ecb6a 100644 --- a/%HOME%/.gitconfig +++ b/%HOME%/.gitconfig @@ -4,12 +4,32 @@ [core] editor = vim autocrlf = false -[push] - default = current + +[diff] + # Include submodule changes into git-diff's output. + submodule = log +[fetch] + # Prune old branches: + prune = true + # Prune old tags (since Git 2.17.0): + pruneTags = true +[include] + # Include a file with work-specific settings (like a different [user] + # section under a specific directory). + path = ~/.gitconfig_work +[log] + follow = true [mergetool] keepBackup = false [pull] + # Don't create a merge commit, fast-forward only. ff = only +[push] + # If no refspec is given, push to the branch with the same name. + default = current +[status] + submoduleSummary = true + [alias] clean-all = clean -fdx clean-ignored = clean -fdX @@ -27,18 +47,9 @@ hide = update-index --skip-worktree unhide = update-index --no-skip-worktree hidden = !git ls-files -v | grep --basic-regexp \"^\\([[:lower:]]\\|S\\)\" -[fetch] - prune = true -[log] - follow = true -[include] - path = ~/.gitconfig_work + [filter "lfs"] smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true clean = git-lfs clean -- %f -[diff] - submodule = log -[status] - submoduleSummary = true -- cgit v1.2.3