Skip to content

Issues when working with git rebase workflow #4006

Answered by yuja
bemyak asked this question in Q&A
Discussion options

You must be logged in to vote

After a PR is rebased and remote branch is deleted, jj git fetch doesn't abandon local commits, even though I have git.abandon-unreachable-commits undefined (so it should be true). This creates a lot of noise in jj log, which becomes hard to read.

The local branch is deleted though (only its name, not commits)

If your repo is colocated, make sure that your local commits aren't checked out. Commits referred by unrelated refs including HEAD@git won't be abandoned. I'm not sure if the current behavior is correct, but that's how unreachable commits are deletected as of now.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@arxanas
Comment options

arxanas Jul 2, 2024
Collaborator

@bemyak
Comment options

@yuja
Comment options

yuja Jul 3, 2024
Maintainer

Answer selected by bemyak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants