DEV Community

Discussion on: What was your win this week?

Collapse
 
kenystev profile image
Kevin J. Estevez • Edited

This week I've learnt a lot of git stash
Before this week I'd been using it the simplest way possible

$ git stash
$ git stash (apply | pop)

Now I've played (almost ruined the local changes in my project) a lot more with other options like:

  • Git stash -p // iterative mode
  • Git stash -u // stash also untracked files
  • Git stash (apply | pop) stash-key // pop or apply other entry different from the last one
  • Git stash show -p --summary stash-key // display stashed changes as diff
  • Git stash -m"message" // add a custom message to recognize on list
  • Git stash list // list all stash stack
Collapse
 
king11 profile image
Lakshya Singh

Thanks for this