Moving part of a subtree of branches, using branch names? #259
-
Hi, I'm still new to git-branchless but so far it's been great. I'm currently using v 0.3.8 in a git repo w/ ~13k commits. I'm using it with branches (we use GitLab and merge requests, which require branches) and we often have braches stacked on top of each other. The
Note the part about "starting from the main branch". Is there a way to config what branch this starts from? For example, if I have the following branch structure (where each branch could have many commits):
And I want to move
I am doing this now via Any tricks or tips that I might be missing? And thanks again for this tool. It's wonderful! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @claytonrcarter, I'm glad that you're finding git-branchless useful! In my workflows, I actually do end up copy-pasting the commit hash for various operations (which is not ideal). In this specific case, does
to move the stack starting from If not, some notes:
I haven't had a lot of time to do feature work lately, but if you're interested in implementing one of the above, I'm happy to set up a call to walk you through the codebase and figure out what needs to be done. |
Beta Was this translation helpful? Give feedback.
-
For the future reader, it's now possible to run something like |
Beta Was this translation helpful? Give feedback.
For the future reader, it's now possible to run something like
git move -s 'children(a)' -d 'main()'
to move all descendant commits/branches ofa
.