diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-24 17:14:45 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-24 17:14:45 +0300 |
commit | 347a68546c0d7df97000bc2a80ebd1d5ceb39e40 (patch) | |
tree | 92f621dbd04547c0a1fcc8044332393bea6dda1e /%HOME%/.gitconfig | |
parent | .bashrc_work -> .bashrc_local (diff) | |
download | linux-home-347a68546c0d7df97000bc2a80ebd1d5ceb39e40.tar.gz linux-home-347a68546c0d7df97000bc2a80ebd1d5ceb39e40.zip |
.gitconfig: no more external scripts
Diffstat (limited to '%HOME%/.gitconfig')
-rw-r--r-- | %HOME%/.gitconfig | 10 |
1 files changed, 10 insertions, 0 deletions
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 |