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

Here's an example of how I've used it:

You're working on some code, and you discover a bug. You're not sure if it is a bug introduced by your latest changes which are not ready to commit, or something which was broken before and you simply didn't notice. Easy to check: use git stash to hide away your latest changes, re-check for the bug, and when you're ready bring back your latest work by calling git stash apply.

This workflow is simpler than making temporary branches which might only have one commit and are not even worth having a name.



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

Search: