Open Cretezy opened 4 months ago
I'm not a fan of this. Doing VCS operations and pushing them at the same time feels like a large footgun. With branch auto advancing, the "commit, branch set, push" flow is already getting reduced from 3 to 2 steps.
https://github.com/martinvonz/jj/pull/2098#issuecomment-1682522251 might be related. It adds a command to push commits to the specified remote ref (without creating a local ref.)
Is your feature request related to a problem? Please describe.
When pushing to a git remote, 2 operations must happen:
jj branch set <branches> -r <revision>
(and optionally create until https://github.com/martinvonz/jj/issues/3584 lands)jj git push
Describe the solution you'd like
git push-to-branch <branches> -r <revision>
which would push branches to the remote.This would behave similarly to
jj branch set
(possibly with--allow-backwards
) andjj git push
(although would only push the related branches/revision).Potential options:
--revision
/-r
--allow-backwards
/-B
--remote
How it would look
Open questions