Discussion

Ask HN: Poll: Do you git stash your WIP?

For the unfamiliar, git stash [0] is a solution to a problem like this:

You're working on a feature, and suddenly realize the need to switch gears to work on something else — say a prod hotfix — and you need to store your WIP somewhere, but you're not ready to commit. You run `git stash` with an optional commit message and get back to business.

What happens for me is I end up making many small stashes across many projects. It might be a trivial change or a prototype of an idea, sometimes I forget creating them in the first place and implement the same thing again and/or they become stale.

My question for others is:

Do you use git stash? Do you forget them sometimes some?

For some more context: I'm pondering writing a little program to peruse all stashes from all repos on your drive in one place.

[0]: https://git-scm.com/docs/git-stash

3 points tedmiston 10 years ago 6 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton