-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
Add a note about not modifying the git history to the quick guide #588
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @DahlitzFlorian. I think it has the right general idea, but I would recommend a couple of changes:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one sentence is an improvement; I suggested another to consider. The other (usually bad) reason people do force-pushes is to synchronize a branch to master. This is normally not needed and may destroy the PR by introducing 100s of spurious commits. But I don't know if recent changes have properly promoted 'git merge origin/master' as the proper way or not. |
@DahlitzFlorian Thanks for the PR. The existing wording in the PR is fine. Personally, I don't find force pushes to a branch to be an issue when doing a rebase of your branch to the current head of master. I agree that changing commits and squashing make it more difficult to review. I often use the following on many projects to avoid merge conflicts and continue development:
This method brings all commits of the PR to the HEAD of master. In my personal workflow, I never use merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as-is or with my suggested comments. Thanks @DahlitzFlorian.
Great points @terryjreedy and @willingc.
I've certainly done this at least once in one of my early PRs before I discovered the approach that Carol mentioned w/ rebasing. I only do that though when the lifespan of a PR is particularly long, otherwise I just deal with the conflicts directly. |
Thanks again for working on this @DahlitzFlorian! :-) |
Thank you @DahlitzFlorian. I appreciate your help. |
…thonGH-588) Co-authored-by: Kyle Stanley <aeros167@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Closes: #579
@aeros What do you think about it?