-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to push all branches that have a remote branch #191
Comments
+1 this request. I don't like leaving a lot of work locally on my machine without a remote backup so I tend to |
By chance, I recently added this functionality to git-branchless in arxanas/git-branchless#541. It introduces a There's still some UI work that needs to be done for deciding when to create branches, but I think |
From the original discussion
Wish I had written down what this was
Note that, at it stands, this issue would only help once you've pushed and not for new branches. You'd still need to manually push.
Wish I knew what I was referring to here.
It would be a help for me in following what you all are doing and seeing how we can cross-pollinate ideas if more details were put in the PR. |
@epage posted discussion here arxanas/git-branchless#564 |
+1 to this request A pity it is suspended for more than a year now 😞 Alas, I'm not a rust guy to help quickly. |
Hey! I'm opening an issue to capture the functionality discussed in https://github.com/epage/git-stack/discussions/189#discussioncomment-2276150 that would allow
git stack --push
to push all branches that already have a corresponding remote branch, even if they are not considered ready.That would help when working with stacked PRs, since I would be able to push all branches on my branches stack with a single command. At the moment, only the first branch from the stack is pushed, since that is the only one that is considered ready. Other branches are not ready, because their parent branch (the previous branch on the stack) is not merged into the protected branch yet.
To make this work, we would probably need another configuration option/flag. If enabled,
git stack --push
would override the existing ready check and instead treat a branch as ready if:Question to answer: for the 2nd condition, what if the local branch is named differently than the remote tracking branch? This could happen if the user manually set the remote tracking branch.
git stack --push
would push to the branch under the same name anyway, ignoring the remote-tracking branch, so it seems like a tangential issue that can be handled separately. A quick note is that I believe we could use the@{push}
revision to push to the remote branch according to the user'spush.default
and other config options.The text was updated successfully, but these errors were encountered: