Skip to content

Home

Create a stash

Saves the current state of the working directory and index into a new stash.

git stash save [-u] [<message>]

# Examples
git stash save
# Creates a new stash

git stash save -u
# Creates a new stash, including untracked files

git stash save "Bugfix WIP"
# Creates a new stash with the message "Bugfix WIP"

More like this

Start typing a keyphrase to see matching snippets.