git stash
Terminology
git stash ¶ Record the current state of the working directory and the index, and go back to a clean working directory. The command saves your local modifications away and reverts the working directory to match the HEAD commit.
git stash apply ¶ Apply the topmost stash on top of the current working tree state without removing it from the stash stack.
git stash clear ¶ Remove all stashed states.
git stash drop ¶ Remove a single stashed state from the stash list.
git stash list ¶ List current stashes.
git stash pop ¶ Remove a single stashed state from the stash list and apply it on top of the current working tree state.
git stash save ¶ Save your local modifications to a new stash, and run git reset --hard to revert them.
Facts, Thoughts and Opinions
Images
[[/div]]
- Subtopics
- Writings