News for hackers. Stuff that matters.
Re:Rebase and merge pull requests by poorman on Monday September 26, 2016 @10:55AM (#12582321)
So it's like the old "merge", but doesn't create another commit when you close the PR?
Re:Rebase and merge pull requests by morinted on Monday September 26, 2016 @10:58AM (#12582355)
Yes -- a merge merges one branch into another, and creates a merge commit while doing so.

A rebase rewrites history, as if the PR had been written on master directly. There is no merge commit and no evidence of a previous branch. Some people prefer rebasing over merging because it gives you a linear commit history.

Re:Rebase and merge pull requests by prophetjohn on Monday September 26, 2016 @11:32AM (#12582650)
This is not correct. What you're describing is two different styles of merging: fast-forward and no fast-forward, as indicated by the `--no-ff` and `--ff-only` flags provided to `git-merge`

`git-rebase` will rewrite the history of the current branch. In this case, github will rewrite the history of the branch that you would like to merge such that the base commit (hence the name "rebase") or the commit that was branched off of is the latest commit on the default branch (usually master)

Then when you merge it, you'll get a merge commit or not depending on whether or not you do a fast-forward merge