Quantcast
Channel: Crunchify
Viewing all articles
Browse latest Browse all 1037

How to Fork Github Repository, Create “Pull Request” and Merge?

$
0
0

Github is pretty awesome. I simply love using it. GitHub is a Git repository web-based hosting service which offers all of the functionality of Git as well as adding many of it’s own features. In this tutorial I’m going to show how to Fork Github repository, Create Pull Request and Merge Pull request.

Let’s get started. Here I’m going to create Pull Request for “Disqus” repository.

Step 1.

Fork Github Disqus repository.

Go to https://github.com/disqus/disqus-wordpress and click on Fork on the top right corner.

WordPress Disqus Github Repository How to Fork Github Repository, Create Pull Request and Merge?

New Repository will be created under your account.

Fork Disqus Github Repository How to Fork Github Repository, Create Pull Request and Merge?

Step 2.

Clone newly created Repo to your workspace may be in Eclipse. Once done working on your part commit your changes to repo.

Step 3.

Commit your changes. This is sample change.

Commit Changes to Github How to Fork Github Repository, Create Pull Request and Merge?

Step 4.

While committing your changes, you may need to login using SSH key and passphrase. Create SSH Keys. Generate Key using ssh-keygen.

Generate SSH Keygen How to Fork Github Repository, Create Pull Request and Merge?

Step 5.

Put Key to your Github Account.

Github Add SSH Keys How to Fork Github Repository, Create Pull Request and Merge?

Step 6.

Click Commit & Push. (as per diagram in step 3).

Step 7.

Create Pull Request.

Create Pull Request Github How to Fork Github Repository, Create Pull Request and Merge?

Create New Pull Request Github How to Fork Github Repository, Create Pull Request and Merge?

Github Pull Request Screen How to Fork Github Repository, Create Pull Request and Merge?

Pull Request Steps Crunchify and Github How to Fork Github Repository, Create Pull Request and Merge?

Step 8.

Checkout Newly created Pull Request.

Pull Request Number How to Fork Github Repository, Create Pull Request and Merge?

How to Merge Pull Request:

  1. In any repository’s right sidebar, click Pull Requests.
  2. In the “Pull Requests” list, click the pull request you’d like to merge.
  3. Click on “Merge pull request” button.
  4. Provide “Commit message” in TextField, or accept the default message.
  5. Click “Confirm Merge” button Under the commit message box.
  6. Optionally, delete the branch. This keeps the list of branches in your repository tidy.
Have anything to add to this article? Please chime in and join the conversion.


The post How to Fork Github Repository, Create “Pull Request” and Merge? appeared first on Crunchify.
Author: Arpit Shah


Viewing all articles
Browse latest Browse all 1037

Trending Articles