Elektrine lite

← Feed

@lekiam@blahaj.zone

Post #3242225

2026-04-12 15:51 UTC

How do forks work exactly ? I mean if I fork #sharkey and I want to strip it of all the stuff I don't use and keep my version for personal use and let's say I still want to push to upstream a change that fixes the bloody stupid thing that makes entire threads vanish if one reply in between is deleted BUT I want the upstream copy/fork that syncs NOT be the main branch but the "upstream" branch because I rather have in main my stripped down version, how would that exactly work ? In other words, can I fork a repo and make My main branch not be their main branch and still sync with no issues ?

Replies (2)

  • @aliceif@mkultra.x27.one 2026-04-13 05:48

    @lekiam@blahaj.zone depends on what you exactly are trying to say you want to do and where. First: I don't know about hosts like github/lab/tea's support for handling upstream branches. If it's just about on your dev machine, you can have two remotes - in your case your fork's origin and sharkey's upstream and you can check out branches of the same name from different remotes, as long as they're named differently on your local repo. So you could do something like: git switch -c sharkey-main --track upstream/main to have the Sharkey main as a different branch locally.

    Open ##3283146

  • @z@blahaj.zone 2026-04-12 16:13

    @lekiam@blahaj.zone ino se si esto te responde exactamente, pero, tu "main" y la "main" de upstream son distintas por definición. Al menos hablando de git. La "sincronizqción" no asume realmente que tengas qque tener lo mismo. (es respuesta muy a medias podría expandirla mucho pero no se cuanto muro quieres)

    Open ##3283148