DEV Community

Discussion on: 5 Git Commands You Shouldn’t Ignore

Collapse
 
jessekphillips profile image
Jesse Phillips

I think git stash can be ignored, though I still make use of it. Use of --amend and --fixup with proper tools like git gui means you can use commit as a stash but this will be stored in the git database.

Stash is good to move changes to another branch but where git will complain it is editing those files.

Collapse
 
mainulspace profile image
Mainul Hasan

Thanks for sharing your insights! Indeed, using --amend and --fixup with git gui can replicate the stashing function and often feels more streamlined.

While stash has distinct advantages, particularly when shifting changes between branches, it's fascinating to observe how each developer tailors Git commands to their unique workflow and preferences. Thanks for sharing your insights 👩‍💻🚀