Here is a good example repository that makes use of issues and pull requests: https://github.com/openelections/
Step 1: Fork my repository dmil/simple-website
.
Go to Settings > GitHub Pages and select the “master” branch as the source. Wait a few seconds and then go to http://your-username
.github.io/simple-website to make sure github pages is set up correctly.
Normally I’d clone the forked repository locally onto my computer, push changes to the fork, then issue a pull request. For the sake of time lets cut that step out. Make one small edit in your fork of this code directly in GitHub.
Create a pull request. Note that this time we are creating pull request across repositories instead of just across branches within the same repository. The base
will be dmil/simple-website/master
while the compare
will be your-username/simple-website/master
.
Compare your website http://your-username
.github.io/simple-website to mine: http://dhrumilmehta.com/simple-website/
I will now merge your pull requests and we can see what changes you all make to the website over time. There’s a good chance we may run into some merge conflicts as well.
Step 1: Fork my repository dmil/simple-website
.
Go to Settings > GitHub Pages and select the “master” branch as the source. Wait a few seconds and then go to http://your-username
.github.io/simple-website to make sure github pages is set up correctly.
Clone the forked repository to your Development folder.
git clone git@github.com:XXXX/XXXX.git
Create a feature branch with your name.
git checkout -b <your name>
Make a random change.
Commit and push the change.
git commit -m "describe your random change here"
git push
Create a pull request. Note that this time we are creating pull request across repositories instead of just across branches within the same repository. The base
will be dmil/simple-website/master
while the compare
will be your-username/simple-website/feature-branch-name
.
Create another pull request within the fork itself where the base is your own master branch. More explicitly, the base is your-username/simple-website/master
and the compare is your-username/simple-website/feature-branch-name
. Merge this pull request.
Note: Draw diagram on board
Compare your website http://your-username
.github.io/simple-website to mine: http://dhrumilmehta.com/simple-website/
I will now merge your pull requests and we can see what changes you all make to the website over time. There’s a good chance we may run into some merge conflicts as well.
Open source collaboration is great for:
More Links
<username>-simple-website
.endorsement
. <h2> Endorsements </h2>
<p> You are a really cool person. - Dhrumil</p>
Make an issue on my simple-website repository: https://github.com/dmil/simple-website