From 8235bedfa4c07ffec9489094f31a0cac1c1f2935 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Wed, 2 Jun 2021 20:51:50 +0200 Subject: [PATCH] .gitconfig: add alias stash-pull --- .gitconfig.inc/common.gitconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitconfig.inc/common.gitconfig b/.gitconfig.inc/common.gitconfig index 1d70d49..5adc856 100644 --- a/.gitconfig.inc/common.gitconfig +++ b/.gitconfig.inc/common.gitconfig @@ -56,5 +56,8 @@ # Reset HEAD to last commit, but keep files as they are undo = reset HEAD~1 --mixed + # Stash changes, pull and pop stash again + stash-pull = !git stash && git pull && git stash pop + # Submodule helpers sm-update = submodule update --init --recursive --remote --merge