Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm pretty sure I specified

> without stashing everything else

and noted that if you're going to stash the rest either way you could just as well use `stash -p` in the first place.



I am not sure why you insist on not stashing the rest of your working directory ? This is a nice and non-permanent solution.

There's a difference between `stash -p` and `add -p + stash`, though. If you want to split your changes into more than two commits, you have to use add/commit/add/commit because stash will just make a commit with "what's left" (it's subtractive operation).


Because it's an annoying extraneous command and I already know about this work-around si I don't need to learn about it.


Why purposefully avoid a tool designed for the job?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: