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
60
votes
5 answers

How can I send a pull request via command line in Bitbucket?

I have to send a lot of pull requests, so I would rather use the bash command line than bitbucket's web interface. Usage example: $ git-req username Here is such a script for Github: http://pastebin.com/F9n3nPuu Is there one for Bitbucket?
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
60
votes
3 answers

How to send pull request on Git

We have recently migrated to Git from SVN. We have setup a bare repository on one machine in our LAN network and cloned on other machines. Now when anyone do the changes and commits we want that he sends the pull request to the bare repo (by telling…
jimy
  • 4,848
  • 3
  • 35
  • 52
59
votes
3 answers

GitHub search - how to exclude (logical NOT) company or user from search results

In this search query (test it live ↗) I'm searching for: all pull requests by user limonte (me) for the vaadin company How can I search for all my pull requests except (logical NOT) those for vaadin company? These two options I tried without…
Limon Monte
  • 52,539
  • 45
  • 182
  • 213
57
votes
2 answers

Automatically closing issue from pull request in GitHub

How do I close an issue using a pull request on GitHub? I know about closing multiple issues with a commit message, but it's a different case. I would like to close the issues not from a commit, but from the description of the pull request. More…
56
votes
2 answers

How do I merge a pull request on someone else's project in git?

I cloned this repo on my computer: https://github.com/derobins/wmd.git There are several bugs with it though, and it looks like another user has fixed them and issued "Pull requests" (I assume these are requests for their changes to be…
DisgruntledGoat
  • 70,219
  • 68
  • 205
  • 290
56
votes
3 answers

Pull Request, ignore some file changes

When I do a Pull Request on GitHub (against master branch), can we ignore some file changes, like we have one file named 'fileA' in branch 'release', and we have the same file in 'master', but we do some changes in 'fileA' in branch 'release' when…
LongYang0806
  • 835
  • 1
  • 8
  • 9
56
votes
2 answers

Create a GitHub webhook for when a pull request is accepted & merged to master

I have a webhook that currently fires on push to any branch. This triggers the webhook far too frequently. Ideally, the webhook would only fire when a pull request is merged into master. I don't see that as an option, though: Is there a way to get…
brentonstrine
  • 21,694
  • 25
  • 74
  • 120
54
votes
2 answers

What is github 'compare & pull request'

I am working on a MeteorIntegration (feature) branch that is published. I did a git push assuming the push was going to the checked-out branch MeteorIntegration: And now I see the following on both master and MeteorIntegration branches. I read…
Manav Kataria
  • 5,060
  • 4
  • 24
  • 26
53
votes
2 answers

Git Remove unwanted commits from a Pull Request

I have started working on a project and I made some unwanted commits which I pushed to origin master. Now, when I try to do a pull request, Github wants to commit all of the previous commits. My question is, how do I remove the unwanted commits and…
user1152142
  • 889
  • 3
  • 12
  • 18
52
votes
3 answers

Proper way to use Gitflow with pull requests

I would like to adopt the git-flow tool inside my team. The problem is that "git flow feature finish" merges the branches locally. And I want to create a pull request instead. Thus, the merge will happen in the origin. So, what is the right way to…
utinome
  • 521
  • 1
  • 4
  • 3
51
votes
7 answers

How to resume review process after updating pull request at GitHub?

I forked GitHub repository and created pull request. Reviewer requested changes from me: Changes requested 1 review requesting changes by reviewers with write access. Learn more. I've committed and pushed necessary changes in pull request branch,…
Nikita
  • 2,780
  • 3
  • 15
  • 12
50
votes
1 answer

how to make pull requests *without* a github account?

One of the goals of git is to be decentralized. If Github is to be the ... hub of git, then maybe it could take into account that there are other hubs out there, and allow pull requests to happen on git URLs that are not hosted on github. The…
anarcat
  • 5,605
  • 4
  • 32
  • 38
50
votes
3 answers

What do you do with your branch after a pull request on GitHub?

My team is experimenting with using GitHub pull requests for code reviews. My only question is what do you do with the branch after you're done? I would think you'd want to delete the branch, but since GitHub hides branches that have been merged…
Randall
  • 14,691
  • 7
  • 40
  • 60
49
votes
12 answers

List all files changed in a pull request in Git/GitHub

Is there a way (from the command line) to list the names of all files changed in a PR in Git/GitHub? This would be used to find what tests need to be run in a Travis CI build for that PR. The CI build runs these commands before it calls our…
Alfred Xing
  • 4,406
  • 2
  • 23
  • 34
48
votes
4 answers

Adding commits to another person's pull request on GitHub

My project on GitHub has received a pull request. The pull request only partly fixes the issue that it's addressing. I've pulled in the changes to a local branch and added some commits of my own. I'd now like to push those commits back to my remote…
John Blackbourn
  • 791
  • 1
  • 8
  • 14