Using git stash with a message
“What's in a name? That which we call a rose by any other name would smell just as sweet.” — William Shakespeare
Well, sometimes it's necessary.
As a developer we usually work on different branches or we need to switch branches. Sometimes we need to abandon some changes.
That's where git stash
comes in picture.
This is how the stash list looks like:
Using git stash without message
Now the problem is if we have stashed changes multiple times git shows the message from last git commit. It's not helpful if we have lots of changes.
With the current way we will have to check the content using
git show stash@{0}
Using git stash with message
With the current approach we know exactly what a specific stash consists of:Subscribe to Ghost
Get the latest posts delivered right to your inbox