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

Not the parent but I'm using it to stage sections of the file and then revert everything that is not staged. For example all logging statements. Or use staging as a mini commit. It's sometimes easier to look at the diff and stage what you consider to be working code without introducing commits. That of course could also be done with committing and then squashing but that's more work :)



or committing and amending that commit, which is really no extra work




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

Search: