Earlier quoted context omitted.
Yes, -p is great, also on `git add`.
Also available on commit.
Loads of fun.
41–43 of 43 posts
Earlier quoted context omitted.
How is this really any better/different than just giving a message to a stash?
how many times have you stashed, and in what stages of development, and when you try to apply them later, will they be in order and will they work on the codebase as it has changed? also, do you even remember you stashed, and is there a log longer than 1 line? stash is a quick hack, and is useful as a quick hack, but commits just work better.
stash apply
use stash branch PickingBackUpStash
That said, the majority of my uses of stash are "git stash; git pull; git stash apply" Or, alternatively, "git stash --keep-index; build; test; commit; git stash pop"The whole point is I am not leaving the stash for long. If I have left a stash dormant for some time, I likely just drop it. Similar with branches.
Earlier quoted context omitted.
git stash -u is much shorter :p This is default for me, now, since I've had untracked files straight up deleted because I didn't include them in my stash.
> I've had untracked files straight up deleted because I didn't include them in my stash. Do you recall the actual circumstances? That shouldn't happen in the normal course of things...
All I know is there was some stash dropping and checking out involved and somehow I lost a couple day's worth of work...oops.