4 ms·
Getting into the habit of always adding via `git add -p` is useful to stop this from happening.
by davidbanham 9y ago
Getting into the habit of always adding via `git add -p` is useful to stop this from happening.
- codyb 9y agoYea commiting by hunks is also super useful. I find a lot of engineers only have a cursory understanding of a lot of git. Rebase vs merge throws a lot of people off and not a lot of people know about git bisect which is just incredibly useful. I think some of it is that people like the graphical nature of things like sourcetree which while offering pretty interfaces don't fully flesh out git. Give me the command line any day.
- concede_pluto 9y agoIt's better to do the big commit and then refactor it. Otherwise you won't have tested whether the hunks depend on each other, which means history littered with broken commits.