Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do pull request on github?

Tags:

git

github

I am new to git and github.

Suppose I have a public github repository, and I want to give my boss information regarding github pull request so that he can run the same project on his local pc and also do a code review. Please let me know what I need to do? Is there some setup I need to do on my github public repo or run some commands? I am able to succeffuly create a public repo and I am able to get a zip file of the whole project and able to test it locally. But need to do this with pull request as it is required by my boss.

like image 285
user1191 Avatar asked Dec 01 '11 16:12

user1191


People also ask

How do I enable pull requests on GitHub?

Enabling repository maintainer permissions on existing pull requests. On GitHub, navigate to the main page of the upstream repository of your pull request. Under the upstream repository name, click Pull requests. In the list of pull requests, navigate to the pull request that you'd like to allow commits on.

How do you send a pull request?

Create pull requestGo to your repository on GitHub and you'll see a button “Compare & pull request” and click it. Please provide necessary details on what you've done (You can reference issues using “#”). Now submit the pull request. Congratulations!


2 Answers

GitHub pull requests can only be sent if you have forked the original repository into your own account.

The most common workflow appears to be:

  1. Create a new branch for the modifications. (For example, featureX...)

  2. Do your changes, push them into the new branch.

  3. Go to your fork's page in GitHub, switch to the new branch, click on "Pull request".

like image 82
user1686 Avatar answered Sep 20 '22 07:09

user1686


I think actually the answer for what you're trying to do is a 'git clone' of your github repository - the command for that is given to you on github above latest commits when you open that repository. Get your boss to run clone on his machine, then build/whatever in the usual way.

Github pull requests are just a notification that you've changed something to get someone else on github (perhaps the project you initially forked, perhaps one that has forked you) to do a pull and review/merge/whatever.

like image 42
MattJenko Avatar answered Sep 21 '22 07:09

MattJenko