3 ms·
> I want my personal history to be the truth, not some convenient fiction. I am mostly using the Git history when going through past changes. Why does this lin
by darekkay 6y ago
> I want my personal history to be the truth, not some convenient fiction.
I am mostly using the Git history when going through past changes. Why does this line do X? I just git blame this line and see exactly what happened. This is the time I really hate all those "oops, fixed mistake" and "forgot this change" commits. I don't care about those things, even if it's the "truth". They're just useless and distracting. Doing an amend/rebase/squash would have been perfectly fine in such a scenario. I have written more about rewriting Git history here [1].
> In a team environment, somebody always insists on using rebase and then invariably they push a rebase to master and hijinks ensue. I wish there was a fork of git with rebase disabled.
That's why shared branches like master are usually protected, so you cannot push an alternative history.
[1] https://darekkay.com/blog/git-rewriting-history/ https://darekkay.com/blog/git-rewriting-history/