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.
Written by Guillaume Hain
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Stash
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#