3 ms·
> Stash is used to record the current state of the working directory and index while also returning to a clean working state. Er, no. Stash does not return to
by lucideer 6y ago
> Stash is used to record the current state of the working directory and index while also returning to a clean working state.
Er, no. Stash does not return to a clean working state. Stash stashes modifications, not new files. And it makes a real mess if those new files happen to exist on another branch you want to check out.
Stash seems like a half-implemented feature tbh, if only for the infuriating limitation above. It's really just not safe to use.
- Nagyman 6y ago> Adding the -u option (or --include-untracked) tells git stash to also stash your untracked files. https://www.atlassian.com/git/tutorials/saving-changes/git-stash https://www.atlassian.com/git/tutorials/saving-changes/git-s...