News for hackers. Stuff that matters.
Re:This is how I git by lucideer on Tuesday November 10, 2020 @08:20AM (#25045605)
> 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.

Re:This is how I git by Nagyman on Tuesday November 10, 2020 @08:29AM (#25045675)
> 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-s...