-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
How exactly do you merge PRs? #256
Comments
👍 Been wondering this as well |
Maybe the jQuery Repository Maintainers Guide can help you :) |
@Arkni Cool, thanks for the reference! Found similar "rebase and merge --ff-only" strategy here via this SO answer, which can either preserve original commits or squash them before merging. Also aware of using hub and I really just want to know how @sindresorhus does it. Still waiting patiently to find out. 😉 |
@nexdrew May be he is waiting for your PR to describe it more efficiently. 😃 |
I quite sure @sindresorhus uses https://github.com/github/hub to merge PRs etc. |
https://github.com/blog/2141-squash-your-commits @sindresorhus Does this mean you might be tempted to use the green button now? 😃 |
I know you rarely use the "Merge pull request" button in GitHub, and I see you use Tower.
Fetch the PR branch locally:
git fetch origin pull/ID/head:pr/ID
If PR contains N commits, squash them into one:
git checkout pr/ID
git rebase -i HEAD~N
Cherry pick the squashed PR commit into master:
git checkout master
git cherry-pick -e pr/ID
Prepend "Close #ID PR: " to the commit message and complete the cherry pick
Run tests and push master
The text was updated successfully, but these errors were encountered: