git - Selectively importing other people's pull requests in your own Github fork -


ok haven't find better way title question. explaining scenario easier. remember this github question, not prototype-js question (please don't add tag me)

the scenario

i'm working on prototype-based web application. found 1.7.1 (no blame author) has few bugs annoying us. these bugs have, fortunately us, publicly available fix through pull request has been accepted master branch.

my boss , discussed choice between patching prototype 1.7.1 each incompatibility find , agreed using "development" version in soon-to-be production application not best choice, our idea patch our version of prototype.

i responsible this. since want track changes company applies prototype (even if i'm who'll touch js file), want in efficient way can left posterity.

github allows fork project own workspace can play as wish. keep track of patches import prototype linking them existing pull requests made original project.

the general question

given generic open source project on github have forked, there way can find pull request, submitted original branch, , choose "import" in own fork (given files should diff-compatible) applied branch?

of course, allows me, on time, keep track record (with comments , discussions) what prs chose import in branch , didn't.

given generic open source project on github have forked, there way can find pull request, submitted original branch, , choose "import" in own fork (given files should diff-compatible) applied branch?

yes. here's how it:

  1. fork repository myaccount/project
  2. clone myaccount/project locally
  3. use git remote add [remote name] each of remotes have fixes want use.
  4. run git fetch --all download everything
  5. use git merge --no-ff -m [remote-name]/[branch-name] merge in changes each pull request want include in fork. --no-ff creates merge commit audit-ability , -m let's specify message in editor (so can include link pull request in merge commit).
  6. once you've made merge, can use git push update fork on github various pull requests you've merged in.

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -