github-gem icon indicating copy to clipboard operation
github-gem copied to clipboard

Fetch&rebase support for pull requests

Open kohsuke opened this issue 14 years ago • 2 comments

I work on projects on GitHub that receives a fair number of pull requests, and most of the time I need to make some slight adjustments on them before merging changes. I also do fetch+rebase when merging pull requests in an attempt to create more linear history. I find it easier to comprehend what was going on that way.

To that end, I added a command to do this in one shot:

  • you run "github fetch-pull 3" where 3 indicates a pull request ID.
  • the command looks at your remote and figure out which repository this is.
  • it then fetches and rebases the pull request, then finishes.

If you find this command useful, would you please consider merging it?

kohsuke avatar Jun 16 '11 00:06 kohsuke

Here's a commit that adds support for private repos to kohsuke's fetch-pull feature:

https://github.com/nixon/github-gem/commit/d856a17f5c0c75c0e9f785ee501616b597cdfd1d

nixon avatar Jun 27 '11 00:06 nixon

The change mentioned in the comment from nixon is now merged into this pull request.

kohsuke avatar Jun 28 '11 00:06 kohsuke