Stash, Pull, Stash Apply as one git command

I noticed that I often do the same sequence of git commands.
notepad ~/.gitconfig
and add
spa = !git stash && git pull && git stash apply
Then execute
git spa

Original Post:

With a help of an answer
I’ve created .bashrc with command
notepad ~/.bashrc
and added the following
StashPullApply() {

git stash

git pull

git stash apply

Now I can use just the name in git bash
 Comment from  Daniel Laughland pointed me to alternative methods to do it with pull rebase