You can do it with alias in ~/.gitconfig: stash-untracked = "!f() { git stash; git stash -u; git stash pop stash@{1}; }; f" And then just do git stash-untracked