git-stash: convert options to longform (#13432)

* convert to longform

* Bracket the correct letter.
pull/28/head
Managor 2024-08-12 18:33:23 +03:00 committed by GitHub
parent 9268e1b5c9
commit 777e336b2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 8 deletions

View File

@ -3,25 +3,25 @@
> Stash local Git changes in a temporary area. > Stash local Git changes in a temporary area.
> More information: <https://git-scm.com/docs/git-stash>. > More information: <https://git-scm.com/docs/git-stash>.
- Stash current changes, except new (untracked) files: - Stash current changes with a [m]essage, except new (untracked) files:
`git stash push -m {{optional_stash_message}}` `git stash push --message {{optional_stash_message}}`
- Stash current changes, including new (untracked) files: - Stash current changes, including new ([u]ntracked) files:
`git stash -u` `git stash --include-untracked`
- Interactively select parts of changed files for stashing: - Interactively select [p]arts of changed files for stashing:
`git stash -p` `git stash --patch`
- List all stashes (shows stash name, related branch and message): - List all stashes (shows stash name, related branch and message):
`git stash list` `git stash list`
- Show the changes as a patch between the stash (default is `stash@{0}`) and the commit back when stash entry was first created: - Show the changes as a [p]atch between the stash (default is `stash@{0}`) and the commit back when stash entry was first created:
`git stash show -p {{stash@{0}}}` `git stash show --patch {{stash@{0}}}`
- Apply a stash (default is the latest, named stash@{0}): - Apply a stash (default is the latest, named stash@{0}):