News for hackers. Stuff that matters.
Re:Git is too hard by lhnz on Tuesday November 17, 2020 @10:30AM (#25124873)
I've used both but generally don't use stash. I think it's more expressive to have a single commit like "wip: some simple description goes here" and then to `git commit --amend` this until we are happy with its contents.

As well as being more descriptive if you come back after a long weekend, this also means that you can swap branches without worrying that your stash relates to a particular branch but doesn't explicitly belong to this.

Re:Git is too hard by wool_gather on Tuesday November 17, 2020 @02:07PM (#25128162)
Tip, instead of amending, it's also straightforward to "uncommit" a temporary commit when you come back to it. `git reset HEAD~` and the state of the commit becomes the state of your working tree instead.