pull-request

How can I fetch an unmerged pull request for a branch I don't own?

我只是一个虾纸丫 提交于 2019-11-26 09:06:14
问题 I need to pull in a specific pull request (that hasn\'t been processed into the main stream yet) in the NServiceBus repo: https://github.com/johnsimons/NServiceBus/commit/d8524d53094e8181716e771c1023e968132abc15 It\'s obviously not my repo, but I need the changes that exist in that pull request. What is the best way to do this? 回答1: To fetch a pull into your repository: git fetch git@github.com:jboss/jboss-common-beans.git refs/pull/4/head Then do whatever you want with FETCH_HEAD: git

How can I check out a GitHub pull request with git?

▼魔方 西西 提交于 2019-11-26 07:51:18
问题 I\'d like to check out a previously created pull request (created via GitHub web interface). I searched and found different places where a refs/pull or refs/pull/pr But when I add fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to the git config file and do a git fetch What I\'m doing wrong? Should GitHub create automatically the pull/xyz stuff, or do I have to configure something? 回答1: To fetch a remote PR into your local repo, git fetch origin pull/ID/head:BRANCHNAME where ID is the pull

Preferred Github workflow for updating a pull request after code review

*爱你&永不变心* 提交于 2019-11-26 04:56:57
问题 I\'ve submitted a change to an Open Source project on Github, and received code review comments from one of the core team members. I would like to update the code taking into account the review comments, and re-submit it. What is the best workflow for doing this? From my limited knowledge of git/github, I could do any of the following: Update the code as a new commit, and add both the initial and updated commit to my pull request. Somehow (??) rollback the old commit from my repository, and

How to do a GitHub pull request

老子叫甜甜 提交于 2019-11-25 22:31:55
问题 How do I create and/or send a pull request to another repository hosted on GitHub? 回答1: (In addition of 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 : isolate your modifications in a branch. Don't create a pull request from master ,

How do I update a GitHub forked repository?

百般思念 提交于 2019-11-25 22:20:59
问题 I recently forked a project and applied several fixes. I then created a pull request which was then accepted. A few days later another change was made by another contributor. So my fork doesn\'t contain that change. How can I get that change into my fork? Do I need to delete and re-create my fork when I have further changes to contribute? Or is there an update button? 回答1: In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are