DEV Community

Discussion on: A Guide to Git Stash

Collapse
 
zyabxwcd profile image
Akash • Edited

Nicely explained. A lot of the developers when starting out are not aware of this gift among many others that git offers. It can also be used to keep a compiled version of the changes that you made local to your machine to be able to run the project. This way you can reapply the stash to different branches and in different instances at will. You can even share it to a teammate by creating a patch from it. I have also used this to keep different spin off versions of a feature in the memory while working on the selected one in my main working tree. I was lucky that my then mentor introduced me to it early on. Now I introduce this to new developers from the get go. :)

Collapse
 
pragativerma18 profile image
Pragati Verma

Thank you so much for reading the article and sharing your valuable feedback. 😁