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

>> If you end up staging the wrong hunk, then you will have to reset and recommit

> you don't have to reset anything

You have to reset the branch pointer to the previous commit, but I think using the --amend switch may do that for you.




If you exit the commit message editor so that it retuns a non-zero exit code to git then nothing is committed and nothing is staged.


With git, usually (maybe always?) exiting having saved an empty buffer is equivalent.




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

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

Search: