logoalt Hacker News

NekkoDroidlast Saturday at 11:30 AM1 replyview on HN

> What do you do when you are working on something and are forced to switch to working on something else in the middle of it?

`git stash` is always an option :) but even if you want to commit it, you can always undo (or `--amend`) the commit when you get back to working. I personally am also a big fan of `git rebase -i` and all the things it allows me to fix up in the history before merging (rebasing) in to the main branch.


Replies

bawolfflast Saturday at 11:48 AM

All of those are things i would refer to as making a commit :)