-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CONTRIBUTING.md: correction in description "Squash commits after review"? #21053
Comments
This is a tad more complex, sadly. The full command is
Borrowing the terminology used in this lwn.net article, there are different things a rebase can do:
When squashing, we usually do not want to re-parent a PR, as this makes it more difficult to track changes before and after the force-push via the diff shown by the GitHub UI or the However: If changes have been merged into |
Thanks for the comprehensive response, @maribu! It is indeed a tad (or lot) more complex than I thought. I suppose it is more convenient to keep it as it is then? When contributors are confused about this, they can ask for advice in the chat and on the forum. |
Maybe we should give two or three examples and a link to detailed documentation? |
In the contributing guidelines there is a description on how to squash commits after review.
Is it correct that in line 323, "$ git rebase -i --autosquash", the branch name to where you want to rebase is missing? (something like "upstream/master"?)
Since I am not totally sure if this should be in the description, and if so, what branch name exactly, I made an issue instead of a PR. I'm happy to PR this after feedback.
The text was updated successfully, but these errors were encountered: