News for hackers. Stuff that matters.
Re:Ask HN: Can we do better than Git for version control? by tinco on Sunday December 10, 2023 @05:15AM (#38590569)
Yeah, I feel the reflog is more of a tool to do introspection on a git repository than that is a tool for collaboration. It's just something I've felt was missing from Git. If you're looking at the main branch of a repository, what was the previous version of that branch?

The way we work around that missing feature is by tagging commits so we don't forget what revision a release was made at for example. A sequence of release tags basically is a meta branch, a history of the release branch, but managed manually instead of through git.

Re:Ask HN: Can we do better than Git for version control? by dolni on Sunday December 10, 2023 @10:57AM (#38592393)
Merge commits mostly solve this problem if you use them.