Uh oh!
There was an error while loading. Please reload this page.
Add a note about not modifying the git history to the quick guide - #588
Conversation
aeros
left a comment
There was a problem hiding this comment.
Thanks for the PR @DahlitzFlorian. I think it has the right general idea, but I would recommend a couple of changes:
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
terryjreedy
commented
May 22, 2020
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. |
willingc
commented
May 22, 2020
@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. |
Uh oh!
There was an error while loading. Please reload this page.
willingc
left a comment
There was a problem hiding this comment.
Approving as-is or with my suggested comments. Thanks @DahlitzFlorian.
Uh oh!
There was an error while loading. Please reload this page.
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. |
aeros
commented
May 24, 2020
Thanks again for working on this @DahlitzFlorian! :-) |
willingc
commented
May 24, 2020
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?