Hacker News new | past | comments | ask | show | jobs | submit login

git-stash is cool, but it can be easy to fall into a habit of creating stashes that you never come back to. When you finally list them all, you find 10, 20 stashes, and you can't remember what they all refer to. I find that situation nightmarish.

I prefer to make a half-commit (and note this), and simply rebase -i later on (before I push my feature branch).

Then again, I'm very comfortable with rebasing my work and how to avoid issues when doing so, and I recognize that not everyone is.




I have my stashes listed in the status, and drop them when needed. For me committing requires a good name and needs to be "somewhere", so it is a deeper action, while I can put any kind of crap in a stash instantly, and drop it if unused.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: