-
-
Notifications
You must be signed in to change notification settings - Fork 847
stop recommend rebase for new contributors #496
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
Conversation
We should not recommend "rebase" and "push -f" to new users.
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.
I think it makes sense.
We squash on merging anyway
gitbootcamp.rst
Outdated
you run ``git merge upstream/master``. | ||
|
||
When it happens, you need to resolve conflict. See following articles for | ||
how to resolve conflicts. |
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.
Could anyone check my English?
- happens vs happened
- "happens, " -- this comma is usual?
- "for how to..." -- is this usual wording?
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.
-
You're using "happens" correctly.
-
The common after "happens" is a typical usage.
-
I'd say something more like "See these articles about resolving conflicts:". The "for how to" is a little awkward.
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!
Would you please link? I want to confirm what happened there. |
It may be better to recommend to new contributors that they should be developing on a branch in their account for each feature. As for rebase, I rarely use I don't object to adding a note for new contributors about rebase though. |
git rebase doesn't reduce conflict. It even increase conflict sometime. |
@methane The explicit git fetch/git rebase combined with specific remote naming, branch usage, and update ordering approach that I teach does reduce merge conflicts significantly. However, I do agree with you that using rebase when not following the particular workflow that I use can have unexpected results. I recommend a few things for this section:
As @asvetlov mentions, it doesn't really matter since we squash. |
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.
If I have ever used rebase, it was because my fork and local repository was ahead or beside upstream. For normal updates when behind, I fetch and merge to each workspace, and to PR branches when working on them. I only get merge conflicts in idlelib when an old PR branch touches code affected by a different merged PR.
In other words, the revised doc matches what I do and have done successfully, as a git non-expert, for 2 years.
Good to hear @terryjreedy. I'll approve this PR as stands and add the other notes in a separate PR. |
FWIW, I leave two comments about why I think merge is better. If the guide is for contributing to general OSS, it is recommended to keep commits in the pull request branch clean. That's why many people recommend rebase. But we're using "Squash and merge" workflow, cleaning commits in pull request branch is not so important. Keeping history clean is complex than just using merge. When people are expert and keep history in the branch clean with There are many documents about |
And github creates much noise when |
@Mariatta I found the issue you reported. And it may be caused by rebase workflow! After 3.8a1 is released, ma8ma creates different commit object (see "ma8ma committed" in the history). Maybe, Anyway, merge workflow doesn't create such "rewrote" commits. |
Huh, very interesting.. Alright. Thanks for following through with this, @methane. |
* stop recommend rebase for new contributors We should not recommend "rebase" and "push -f" to new users. * fix English and rest syntax
We should not recommend "rebase" and "push -f" to new users.
These command requires high skill when they cause trouble.