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

>When I am working on a feature branch, I often find myself committing experiments,

That's exactly what `git branch` is for. For experimentation.

>that I possibly undo later in the branch.

That's exactly what `git branch -D` is for. Or even just `git checkout` and leave the branch there. That way if you ever change your mind you can revisit it.



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

Search: