Forrest logo
back to context overview

git-stash

List of commands for git-stash:

  • git-stash:tldr:3400e git-stash: List all stashes (shows stash name, related branch and message).
    $ git stash list
    try on your machine
    explain this command
  • git-stash:tldr:34a62 git-stash: Apply a stash (default is the latest, named stash@{0}).
    $ git stash apply ${optional_stash_name_or_commit}
    try on your machine
    explain this command
  • git-stash:tldr:3b89f git-stash: Stash current changes, except new (untracked) files.
    $ git stash push -m ${optional_stash_message}
    try on your machine
    explain this command
  • git-stash:tldr:a0937 git-stash: Show the changes as a patch between the stash (default is stash@{0}) and the commit back when stash entry was first created.
    $ git stash show -p ${stash@{0}}
    try on your machine
    explain this command
  • git-stash:tldr:daee8 git-stash: Drop all stashes.
    $ git stash clear
    try on your machine
    explain this command
  • git-stash:tldr:dddff git-stash: Stash current changes, including new (untracked) files.
    $ git stash -u
    try on your machine
    explain this command
  • git-stash:tldr:e1079 git-stash: Drop or apply a stash (default is stash@{0}) and remove it from the stash list if applying doesn't cause conflicts.
    $ git stash pop ${optional_stash_name}
    try on your machine
    explain this command
  • git-stash:tldr:f3245 git-stash: Interactively select parts of changed files for stashing.
    $ git stash -p
    try on your machine
    explain this command
back to context overview