From 347a68546c0d7df97000bc2a80ebd1d5ceb39e40 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 24 Jan 2020 17:14:45 +0300 Subject: .gitconfig: no more external scripts --- %HOME%/.gitconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '%HOME%/.gitconfig') diff --git a/%HOME%/.gitconfig b/%HOME%/.gitconfig index 07b1c3b..5369d34 100644 --- a/%HOME%/.gitconfig +++ b/%HOME%/.gitconfig @@ -15,11 +15,17 @@ # If no refspec is given, push to the branch with the same name. default = upstream +# Git submodules suck, but they suck less if you read +# https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407. + # Show submodule changes in a more verbose way. [diff] submodule = log [status] submoduleSummary = true +[alias] + # Pull and sync submodules. + pulll = !git pull && git submodule sync --recursive && git submodule update --init --recursive # Automatically remove obsolete things/publish new things. [fetch] @@ -62,6 +68,10 @@ unhide = update-index --no-skip-worktree hidden = !git ls-files -v | grep --basic-regexp \"^\\([[:lower:]]\\|S\\)\" + # Squash the staging area with the latest commit. + # Pass "-a" to skip using `git add`. + fixup = !GIT_EDITOR=true git commit --amend + [filter "lfs"] smudge = git-lfs smudge -- %f process = git-lfs filter-process -- cgit v1.2.3