How to execute some tasks automatically when I do git pull

Hi,
I work on Laravel project; when I want to apply my changes I do this :

  • git pull origin master: it asks m to stash because of json.lock
  • git stash
  • git pull origin master
  • composer update
  • php artisan migrate

I always repeat these tasks, Is there any solution to resume all in one command?

thanks