Last Updated: September 29, 2021
·
964
· zedtux

Be warned when having more than 1 git stash

Git stash command is very powerful and helpful, but if you don't use it correctly, it can make you crazy.

In order to not become lost, that small script will show you a warning message when you will do a git status and having at least 2 stashes:

WARNING: You have 3 stashes.

https://gist.github.com/4593648

1 Response
Add your response

Indeed it can be complicated once you stash more and more. But a very nice thing is to name your stashes. So when running git stash list you will receive a nice list of stashes with a name you defined. So it may help you to now forget what you actually stashed :)

over 1 year ago ·