Since practicesofmastery.com is dedicated to spreading the knowledge of continuous delivery of software, it makes sense that contributing to the site uses some of the practices we espouse.
Hey, I want to contribute!
Sweet! We totally want you to contribute. We also want you to be attributed with the contribution. And we want to make sure that everyone gets to share in the magical knowledge that you have to impart. Also, we hope that some people learn a thing or two by contributing.
Here’s the process of contributing to the site. You can follow the Very Quick Primer on Git for an example with more detail.
- The name of the branch, directory and markdown file for your article must be named after your article, all in lowercase, prefixed by “article-” and spaces replaced by -‘s.
- For example if your article is called “Some Interesting Things”, then you will have:
- branch: article-some-interesting-things
- directory: article-some-interesting-things/
- file: article-some-interesting-things.md
- Create a GitHub Account (if you don’t already have one) and upload your SSH key
- Fork this repo on Github: https://github.com/danacton/practices-of-mastery
- Clone your GitHub fork onto your machine:
git clone email@example.com:<account_name>/practices-of-mastery.git
- Create a local branch for your article named after your article (see naming conventions above):
git checkout -b <article-some-interesting-things>
- On that branch, create a directory named after your article (see naming conventions above)
- Write an article on a practice of mastery – choose from any of those indicated on the site. Create the article as a Markdown document named after your article (see naming conventions above)
- Commit the article to your local git repo
git add <article-some-interesting-things>/<article-some-interesting-things.md>
git commit -m “<Interesting Commit Message>”
- Push your changes to the your Github fork of the repo
git push origin <article-some-interesting-things>
- Repeat steps 5 and 6 as required to complete your article, once complete continue to step 8
- Create a pull request on Github for your branch in your GitHub fork to the master branch of the upstream repo, i.e.https://github.com/danacton/practices-of-mastery
- Once the pull request is reviewed, your reviewer will merge to master of the upstream repo and let you know your article has been published
If you are going to make a second contribution to the Practices of Mastery if will be useful to sync your fork of Practices of Mastery with the upstream repo. That can be done as follows:
- Add the upstream repo as a remote to your local git repo
git remote add upstream https://github.com/danacton/practices-of-mastery.git
- Fetch changes made to upstream (if any)
git fetch upstream
- Merge upstream changes into your master branch
git checkout master
git merge upstream/master
- Push changes to your GitHub fork
git push origin master
- Now start with step 3 of “Process” above