New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't squash commit in interactive rebase editor #1197
Comments
Git rebase doesn't let you squash/fixup the last commit (because you would be then modifying a commit outside of your rebase target). If you want to squash into that last commit you need to rebase to its parent. Its a bug that it even shows up in the dropdown as an option. |
Yeah I understand that, I think it should not show up in the last commit's dropdown, and it should show up in the first one, right? |
Yup for some reason those 2 are reversed. |
@roblourens I can't seem to reproduce this -- but something else looks wrong in that screenshot. The base commit is missing. Are those the only 2 commits on that branch? |
So it looks like it is caused by the missing base commit. But not exactly sure how you are hitting that. Is this a repo I have access to that I can try it? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
git log
The first commit should have squash as an option in the menu, I can set it using the keyboard but not the dropdown.
v11.0.2
The text was updated successfully, but these errors were encountered: