-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG + 2] add link in the contributing doc for rebasing on master #7541
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
Thanks. Should we also link to the page in general as recommended reading, in addition to the official git docs? |
Done |
lgtm |
I am so against enforcing rebasing… I actually had to help people fix git rebasing problem in the early days of scikit-learn during our first sprint ever and it was not a good feeling. |
The text is fine, btw so +1. |
I think we should ask people to rebase only in case of conflicts, in which case it's better then merging master. |
I agree it is better but beginners typically make the mistake of rebasing master onto their branch instead of rebasing their branch onto master ( 😟) and the history is then all screwed up (😢) so you need to reset the HEAD to the instance when it was still correct, which means explaining reflog (😭)… All of this is fine for people who have used git a fair amount of time, but unfortunately, it is typically beginners that mess up rebases and end up in the case where you have to run a number of obscure commands to fix the issue. I typically never use merge (unless with the |
So how do you suggest to solve conflicts with master branch? |
Merging is less risky. |
My tests seem to imply screw up very badly. I don't think github` will have a squash and merge button for cases were the master branch has been merged into the working branch. |
I had thought squash and merge should work fine... after all it's just On 1 October 2016 at 08:57, Nelle Varoquaux [email protected]
|
I didn't test through the interface, but doing it manually on my computer so maybe I messed up. It'd be interesting to know. |
I would expect there to be a screw-up. You have two ancestors and you want to rebase one of them on top of the other? that's kinda weird. |
Well… Unless someone tests and demonstrates the github interface deals with this properly, let's merge the PR as is and change it later if we discover that squash and merge works fine if master has been merged in the branch of the PR. |
As suggested in #7111 (comment), I added two links in the contributor doc: