Git Stash Tutorial

  • Returns a list of your stashes with a corresponding id and a message.
  • Returns stashed changes under {id} back to the project, however the information about stash isn’t deleted. (The id of your stash can be found out by running preceding “git stash list” command.)
  • Returns stashed changes back to the project, but deletes the topmost stash from the “git stash list.”
  • Deletes the stash under {id} in the “git stash list”.
  • Deletes all stashes in the list.

Resources to help you learn more:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store