diff --git a/tldr/git-stash b/tldr/git-stash index d4f05748..9a4ae233 100644 --- a/tldr/git-stash +++ b/tldr/git-stash @@ -8,25 +8,25 @@ source: https://github.com/tldr-pages/tldr.git > Stash local Git changes in a temporary area. > More information: . -- 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): `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}): diff --git a/tldr/linux/dir b/tldr/linux/dir index f328a5c4..d3358560 100644 --- a/tldr/linux/dir +++ b/tldr/linux/dir @@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git - List all files, including hidden files: -`dir -all` +`dir --all` - List files including their author (`-l` is required):