DEV Community

loading...

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

Collapse
_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

and

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

Collapse
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

Collapse
i386net profile image
i386net

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

Collapse
ravimengar profile image
Ravi Mengar Author

Hey, Aris

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