DEV Community


Discussion on: A Git Cheatsheet Of Commands Every Developer Should Use

_arisharyanto profile image
Aris Haryanto • Edited

also you need to add

git stash
Enter fullscreen mode Exit fullscreen mode

when you want to keep your working progress without commit then you need to switch to other branch


git stash pop
Enter fullscreen mode Exit fullscreen mode

to put their back to your file

i think this is important if you work with some branch

loebkes profile image
Ludwig Göbkes

I often use git stash save -m "name" instead as I can give the stash a name for easier identification later on

i386net profile image

It's deprecated and it's recommended to use git stash push -m instead

ravimengar profile image
Ravi Mengar Author

Hey, Aris

Thanks for highlighting the above helpful commands. Will surely make use of it 👍