Replies: 5 comments 6 replies
-
|
You're correct that this is a missing feature. It doesn't seem to be a good fit for |
Beta Was this translation helpful? Give feedback.
-
|
If your repository is colocated, you should also be able to run |
Beta Was this translation helpful? Give feedback.
-
|
Found this because I was facing the same. One-liner for colocated is (and note that also updates branches like |
Beta Was this translation helpful? Give feedback.
-
|
The equivalent of |
Beta Was this translation helpful? Give feedback.
-
|
For me moving the bookmark to jj bookmark move main
jj git push -b main |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm used to a completely branchless mercurial workflow, so I'm happy to ignore and do away with all local branches. I also happen to work primarily with git repos where I am the primary committer and I tend to push directly to the
mainbranch on github, so I don't usually make PRs for my own work. In git I usegit push origin HEAD:mainwhen I've got a stack of commits to push up.I've only used
jjto push a handful of commits so far, and each time I've stumbled with the need to runjj branch set main -r @-first. I would like to collapse that step out of my workflow.From the
jj git pushdocs it looks like I should be using-c @-(or-r @-?) to push the parent of my working copy, but the docs say that it will create a new branch for that. How can I tell it to push tomain@originand not make a new branch?Is there a different way to express this workflow in
jjthat I've completely missed?(Slight aside:
jj git push --helpdocs feel a bit ambiguous regarding local vs. remote branches. I recognize that I'm new tojjand that perhaps it is more obvious to an establishedjjuser, but I wanted to share that it isn't clear to me whether the branch creation is local or remote or how those interact around the push operation, from reading thejj git push --helpdocs in isolation)Beta Was this translation helpful? Give feedback.
All reactions