Questions tagged [pull-request]

Pull requests are made when a developer forks a project, makes changes, and then wants those changes to be included in the main project again. These were made popular by Github and Bitbucket.

2166 questions
231
votes
7 answers

How to remove commits from a pull request

I did a pull request but after that I made some commits to the project locally which ended polluting my pull request, I tried to remove it but without any luck. I found some similar questions on StackOverflow but I can't apply what's in there. It's…
humazed
  • 74,687
  • 32
  • 99
  • 138
213
votes
6 answers

Can I make a pull request on a gist on GitHub?

Can I make a pull request on some else's gist on GitHub? I'm aware of the fork, clone and commit workflow for a gist I own. I'd like to know if I can request to update someone else's gist with my fork.
Razvan Caliman
  • 4,509
  • 3
  • 21
  • 24
212
votes
7 answers

How to cancel a pull request on github?

How can a pull request on github be cancelled?
memmons
  • 40,222
  • 21
  • 149
  • 183
197
votes
13 answers

GitHub clone from pull request?

I would like to clone a repository from GitHub. The problem is I don't want the main branch; I want the version in this unapproved pull request. Is it possible for me to clone the pull request version instead of the main repository?
Fresheyeball
  • 29,567
  • 20
  • 102
  • 164
173
votes
8 answers

How to open multiple pull requests on GitHub

When I open a pull request on GitHub. All commits since my last request and all new ones are automatically added to this request. I can't seem to control which commits are added and which are not. When I try to open another pull request, I get an…
torourke
  • 1,879
  • 2
  • 13
  • 10
172
votes
6 answers

Merge pull request to a different branch than default, in Github

A pull request comes into my repo hosted on Github. By default it is merged into the master branch. Is there any way for me to change which branch the changes would be merged into?
eoinoc
  • 3,155
  • 3
  • 24
  • 39
171
votes
3 answers

Renaming a branch while on pull request

On Github, you can make pull requests to add functionality to a project. One's contributions have to be on a branch that, if the request is accepted, will be merged into the master branch (or an analogous one) of the project. Now, I submitted a pull…
Michele
  • 2,796
  • 2
  • 21
  • 29
169
votes
8 answers

GitHub: Reopening a merged pull request

I made some changes I submitted a pull request The pull request was accepted and merged. We found a bug The changes were removed again (force push to 1 commit before) whilst I fixed the bug. I've now fixed the bug and want to resubmit the pull…
Michael Parker
  • 7,180
  • 7
  • 30
  • 39
138
votes
6 answers

How do I change from a PR to a draft PR at github?

Github release the draft PR a while ago. I have a normal PR and I wanted to change that to a draft PR. How can I do that?
Hatsumi
  • 1,948
  • 3
  • 13
  • 28
125
votes
6 answers

github: Adding commits to existing pull request

I opened a pull request to rails repo on github by using Fork & Edit this file file button. Now, After getting feedback on my PR, I wanted to add some more commits. so here is what I ended by doing $ git clone git@github.com:gaurish/rails.git #my…
CuriousMind
  • 33,537
  • 28
  • 98
  • 137
113
votes
3 answers

Working while waiting for pending PR

I'm working on a project and I submitted my first pull request and while I'm waiting I want to continue on working on my project building up from what I worked on the merge that's still pending on. Right now I have…
Miguel Angel Quintana
  • 1,371
  • 2
  • 9
  • 12
110
votes
1 answer

Are dependent pull requests in GitHub possible?

Currently I am working on a really big pull request. In order to keep code reviews somehow manageable, the idea was to split the complete pull request into isolated parts which, however, depend on each other. An example would be: Pull request 1:…
fyr
  • 20,227
  • 7
  • 37
  • 53
110
votes
7 answers

Where can I see my pull requests on GitHub?

Is there a way to view on GitHub: All my pull requests My open pull requests The only place where I usually see that is in my Contribution Activity, which unfortunately does not go further than 1 month ago.
BenMorel
  • 34,448
  • 50
  • 182
  • 322
104
votes
3 answers

How to submit a pull request from a cloned repo?

How to submit a pull request from an existing locally-cloned repo? Often, I want to look at some libraries source code from github, so I clone it. Later, I discover some issue with the code and raise it on a mailing list, often in passing. The…
Ben Hutchison
  • 2,433
  • 2
  • 21
  • 25
97
votes
4 answers

How can I filter all GitHub pull requests for a specific target branch

I'm working on a GitHub repo with lots of branches and pull requests. Let's say, for example, that I have the following pull requests: a to branch X b to branch X c to branch Y d to branch X e to branch Y. Is there a way to find all the pull…
AVIDeveloper
  • 2,954
  • 1
  • 25
  • 32