Undo a merge by pull request?

There is a better answer to this problem, though I could just break this down step-by-step. You will need to fetch and checkout the latest upstream changes like so, e.g.: git fetch upstream git checkout upstream/master -b revert/john/foo_and_bar Taking a look at the commit log, you should find something similar to this: commit b76a5f1f5d3b323679e466a1a1d5f93c8828b269 Merge: … Read more

Send a pull request on GitHub for only latest commit

You need to basically create a new branch & cherry-pick the commits you want to add to it. Note: you might need these before the checkout/cherry-pick commands git remote add upstream <git repository> git remote update git checkout -b <new-branch-name> upstream/master git cherry-pick <SHA hash of commit> git push origin <new-branch-name> Afterwards, you will see … Read more

How to do a GitHub pull request

(In addition to the official “GitHub Help ‘Using pull requests’ page”, see also “Forking vs. Branching in GitHub”, “What is the difference between origin and upstream in GitHub”) Couple tips on pull-requests: Assuming that you have first forked a repo, here is what you should do in that fork that you own: create a branch: … Read more

On GitHub, what’s the difference between reviewer and assignee?

EDIT: After discussing with several OSS maintainers, reviewers is defined as what the word supposed to be: to review (someone’s code) and “assignee” has a looser definiton explained below. For “reviewer”: someone you want to review the code. Not necessarily the person responsible for that area or responsible for merging the commit. Can be someone … Read more