Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Stash is pretty intuitive. It puts your changes somewhere, making it look like you've done nothing (reset to HEAD), allow . Later you to pull them back laterfrom the stash. What you may not know if is that you can name your stashes with the following "save" sub-command (note: save is the default subcommandsub-command)

Code Block
git stash save "My Message Here"

...

Most people just the pop command to apply a stash and remove it, but you can simply apply a stash's changes to a branch and keep it around in the list without removing it as pop does. Use this if you want to apply it a stash to multiple branches (cheap cherry-pick / reset)

...