Hacker News new | ask | show | jobs
by jzm2k 1610 days ago
Doesn't git stash save -p accomplish that?
2 comments

The way to get a correct answer on the internet:

  1) Post the wrong answer.
  2) Get corrected.
  3) Profit
Cunningham's Law! "the best way to get the right answer on the internet is not to ask a question; it's to post the wrong answer."
> But what if you only want to store part of your changes in the stash? You could use git stash -p and interactively select hunks to stash or keep.

It's even right in the article. (Then goes on to describe how this change means you can stash those chunks easily if you've already selectively staged them.)