My WIPs are branching off #5240
Replies: 3 comments 15 replies
-
Notice that The usual way to linearize this is to rebase onto master@origin, but that will create a divergent change because it will unhide There are two ways you might linearize this. You could duplicate the second revision to get a new change ID, then rebase:
Or you could restore the contents of
Regarding your second question, see this FAQ, you can configure |
Beta Was this translation helpful? Give feedback.
-
I didn't manage to execute the above well enough and ended up hard-resetting the repo using git. Then I got myself into the same situation, again. I fully understand what's going on now but still don't understand how to fix this using jj.
The above happens because I work on a bunch of changes and push them to Github as work in progress. Then I work some more and have a batch of changes that supersedes the previous one. I would just amend the commit and force-push it to Github using git. How do I do this using jj, though? The original instructions ask me to abandon the latest change if I understand them correctly. I want to keep that change, though, and drop the previous one. That is, I'd like to keep Abandoning
|
Beta Was this translation helpful? Give feedback.
-
@martinvonz It would be helpful if the abandoned commit disappeared before |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I straighten this out into a linear sequence with no branches?
Also, is jj meant to show only the last couple of commits?
Beta Was this translation helpful? Give feedback.
All reactions