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 we are going to discuss:
- How to Fork Github repository
- Create Pull Request
- Merge Pull request.
Let’s get started.
NOTE: Here I’m going to create Pull Request for “Disqus” repository.
Step-1. Fork Github Disqus repository
- Go to
https://github.com/disqus/disqus-wordpressand click on
Forkon the top right corner.
- New Repository will be created under your account.
Commit your changes. This is sample change.
While committing your changes, you may need to login using SSH key and passphrase. Create
SSH Keys. Generate Key using
Key to your Github Account.
Commit & Push. (as per diagram in step 3).
Checkout Newly created Pull Request.
How to Merge Pull Request:
- In any repository’s right sidebar, click Pull Requests.
- In the “
Pull Requests” list, click the pull request you’d like to merge.
- Click on “
Merge pull request” button.
- Provide “
Commit message” in TextField, or accept the default message.
- Click “
Confirm Merge” button Under the commit message box.
- Optionally, delete the branch. This keeps the list of branches in your repository tidy.
Here is an official Github cheatsheet:
Join the Discussion
Share & leave us some comments on what you think about this topic or if you like to add something.