Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



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




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

Search: