Branching/Rebasing strategy for forks (w/ some changesets not intended for PR) #4003
Replies: 3 comments
-
|
The i haven't interacted with developers in a long time and i haven't really worked socially on many projects. i can get some fairly advanced stuff in to work in git, but it's just rarely been with multiple remotes. so idk how to express what I'm aiming for in terms of i tried asking gemini and it just confabulated a bunch of garbage that i could tell was very wrong |
Beta Was this translation helpful? Give feedback.
-
|
What I decided on:
for any branches that i have, depending on the order in which they need to be applied: branches=(icons guixhome)
base=master
theirs=origin
ours=dcunited001
# or origin/dev. this checks out a detached HEAD
git checkout $theirs/$base # redundant, IIRC.
# depends, but you need to be on detached HEAD for the loop to work.
# the rebase will crash unless the changesets are partitioned (entirely separate)
# git rebase --onto $target $fromRef $toRef
for topic in ${branches[@]}; do
git rebase --onto HEAD $theirs/$base $ours/$topic
doneStill on detached head. Need to cycle out the branch ref. this is a bit messy then force-push (or not). obviously, my fork, but git push -F current dcunited001/currentIt's not ideal, but updating each of topic refs should be much simpler |
Beta Was this translation helpful? Give feedback.
-
|
i also have [pull]
rebase = true
[rerere]
enabled = true
# forgot to test this one...
# [rebase]
# autostash = true |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to manage a few changesets for myself that I don't intend to PR, but these personal patches need separate git refs. if there's small merge conflicts, i don't care. there's an example below the image. kinda theoretical... anyway
dcunited001/masterorigin/masterafter the set ofdcunited001/pullreq-n's that i have. if it's not my PR, i don't imagine that I'd be persisting it on my machine.$XDG_DATA_HOME/omarchyas far as branch rebasing (much of this is advanced and TMI)
git-stackbut i've done that once before.git-stackonly patching the path search order here. originally I thought this was used more often throughout omarchy, but it's not. I don't even have Guix Home set up at the moment, but I could imagine this being Nix Home Manager (standalone), but i'm not using home manager on my other Nixos machine.
Regardless of the details, this is theoretically the kind of patch that I'd want to survive rebases, but if I'm only making branches for PRs then i may still want multiple PRs active & rebased at the same time
Beta Was this translation helpful? Give feedback.
All reactions