main branches locally
main branches locally
Posted Oct 24, 2025 1:38 UTC (Fri) by mathstuf (subscriber, #69389)In reply to: main branches locally by josh
Parent article: Git considers SHA-256, Rust, LLMs, and more
> Forges could have an option to sync it automatically (a button, automatic, or scheduled),
I agree that it is annoying that it is not (often) synchronized. I typically only do so to make it easier to batch-delete already-merged branches on the remote (`git branch -a --merged` exists, but it is useful to have the "how far ahead/behind" view).
> There's no fundamental reason a repository *couldn't* be kept alive with a virtual/fake/nonexistent HEAD.
I guess my question is: what happens when you fetch from your fork in this state?
Forges do store repositories in a single object space and namespaced refs. I wonder if a symref can point between namespaces so that your fork's main is just a symref to the origin's main.
