Workflow with stacked branches #745
Unanswered
GiorgosAlexakis
asked this question in
Q&A
Replies: 1 comment 4 replies
-
In the latest development version, instead of In the latest released version, the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider four branches. The second one is stacked on top of the first one, the third one is stacked on top of the second and so forth. Each branch can have multiple commits.
Now let's say I checkout to the first commit of the first branch. I add the changes I want but instead of amending the commit I want to create a new commit that will be placed after the first commit of the first branch.
If a new commit is created while I am checked out at the first commit, the rest of the branches won't include this added commit. One obvious solution that doesn't involve git-branchless requires you to rebase each branch, i.e go to second branch git rebase first_branch and so forth.
How can I use git-branchless to avoid doing all this manual work?
Beta Was this translation helpful? Give feedback.
All reactions