Replies: 1 comment 1 reply
-
|
You can pass |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am seeing empty commits after my common workflow, and I'm wondering if I'm doing something wrong or not quite the
jjway.In short, I am using
jjwith GitHub, and our GitHub pull requests are squashed before merging, which generates a new git commit. Then, when I rebase my local branch onto main withjj, it leaves an empty commit in the history. It's the same description as what was merged in GitHub, but the contents are empty.Local example simulation:
Start with a simple linear history:
Then simulate a squash merge to "main" (in this case,
psuxvqox):Now, I rebase my local changes on top of "main":
Here, you can see the empty commit:
(empty) two. The rebase correctly realizes that all of the changes intwoare already upstream, but it leaves the empty commit. I then have to go in an manually abandon it.I know I could target the rebase and manually exclude the
twocommit. But I will often do the simplerjj rebase -b @ -d mainso I don't have to look up the refs.Beta Was this translation helpful? Give feedback.
All reactions