Stashing in [[Git]] means to save changes somewhere temporarily in a separate "workbench" area.
## Usage
Stashing is usually used when you want to [[Rebasing in Git|rebase]] to pull changes to a main branch and apply them to your sub-branch, but you don't want to lose the changes you've already made.
### Stash changes
`git stash` will save all changes you've made to this branch.
### See what you've stashed
`git stash show`
### Apply your stashed changes
After you've rebased, you can then play the changes you've made on top of the new copy.
`git stash apply` or
`git stash pop`