|
|
|
|
|
by xorcist
1938 days ago
|
|
> why not squash and rebase entire months or years of project work into single commits? The argument here is that one should rebase and carefully craft commits that isolates each functional change into a separate commit, where each change is motivated and builds on previous, before pushing anything. Every commit should build cleanly, preferably even pass tests. That makes changes easier to reason about, and enables the use of tools such as bisect. Look at git itself for an example of this type of history. The counter argument to that was that it presents a false view of history. Maybe there were false starts and mistakes made along the way. Without preserving these to history the reader is left without understanding these. This is not an uncommon argument. Some people argue rebase should never be used. This view suggests that a more detailed history is preferable. Taken to its logical extreme, that would mean every keypress and editor command. But "why not delete all of history" is not an example of "carefully crafted commits" taken to an extreme. Quite the opposite. |
|