git stash
Stash local Git changes in a temporary area.
=> More information.
- Stash current changes, except new (untracked) files:
git stash [push -m {optional_stash_message}]
- Stash current changes, including new (untracked) files:
git stash -u
- Interactively select parts of changed files for stashing:
git stash -p
- List all stashes (shows stash name, related branch and message):
git stash list
- Apply a stash (default is the latest, named stash@{0}):
git stash apply {optional_stash_name_or_commit}
- 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}
- Drop a stash (default is stash@{0}):
git stash drop {optional_stash_name}
git stash clear
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
=> CC-BY
Proxy Information
- Original URL
- gemini://freeshell.de/tldr/git-stash.gmi
- Status Code
- Success (20)
- Meta
text/gemini;lang=en-GB
- Capsule Response Time
- 115.542748 milliseconds
- Gemini-to-HTML Time
- 0.45903 milliseconds
This content has been proxied by September (3851b).