Re:Gitless a simple VCS built on top of Git
by ahelwer on Saturday June 17, 2023 @01:04PM
(#36372071)
You have to fix conflicts either way so what's the difference? I suppose when merging you only have to fix the cumulative conflicts, while when rebasing you have to incrementally fix the conflicts introduced by every commit which is annoying. I usually squash a branch (rebase on where it diverged) before rebasing to fix this.
[ Parent
| on HN ]
Re:Gitless a simple VCS built on top of Git
by halostatue on Saturday June 17, 2023 @01:27PM
(#36372293)
It’s worth configuring rerere (reuse recorded resolution): https://git-scm.com/docs/git-rerere for merges and rebases, because repeated rebases or merges of similar code will become substantially easier.
Re:Gitless a simple VCS built on top of Git
by frutiger on Saturday June 17, 2023 @01:36PM
(#36372396)
> revere
Innocent typo but for anyone else reading, it’s “rerere”.
Re:Gitless a simple VCS built on top of Git
by halostatue on Saturday June 17, 2023 @01:42PM
(#36372457)
Thanks. I still had time to fix it, so I’ve corrected it. I had typed rerere, but autocorrect "fixed" it for me whether I wanted it fixed or not.
Re:Gitless a simple VCS built on top of Git
by adontz on Saturday June 17, 2023 @01:44PM
(#36372485)
After rebasing you basically have two versions of the same commit, and that is the root of the problem.
Re:Gitless a simple VCS built on top of Git
by unmole on Saturday June 17, 2023 @02:56PM
(#36373309)
> After rebasing you basically have two versions of the same commit, and that is the root of the problem.
No, you have two commits. Git commits are snapshots, not diffs. Git's data model is simple. The fact that people do not bother trying to understand it is the root of the problem.
I never stated otherwise, IDK what are you not agreeing with.