707 B
707 B
title, tags, expertise, firstSeen, lastUpdated
| title | tags | expertise | firstSeen | lastUpdated |
|---|---|---|---|---|
| Create a stash | repository,stash | intermediate | 2021-04-13T19:36:57+03:00 | 2021-04-13T21:10:59+03:00 |
Saves the current state of the working directory and index into a new stash.
- Use
git stash saveto save the current state of the working directory and index into a new stash. - You can optionally use the
-uoption to include untracked files. - You can optionally provide a
<message>for the stash.
git stash save [-u] [<message>]
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"