This directory contains best practices, links, and resources for training those who wish to contribute to docs.microsoft.com.
-
A week or so in advance, set up a block of time (typically an hour or 90 minutes) to provide training for the contributors.
-
At that time also send an introductory email to the contributors with a link to the contributor's guide, and ask that they preform the tools and setup steps prior to the training. For those who entirely new to Git and Github, you may also suggest they take online training prior to the session:
- The Learn Git course from Codecademy.
- The Try Git course from Code School.
- GitHub's 15-minute interactive primer, cheat sheets, and links to formalized training.
-
Use the first third to explain Git and Github, using the training PowerPoint Presentation.
-
Use the second third to demonstrate our workflow using Gitbash, a markdown editor, and Github. While doing so, insist that the trainees follow along using their own installation of the tools. Have them:
- Fork the repo
- Clone their fork locally using
git clone http://github.com/GITHUBUSERNAME/REPO - Create aliases to upstream and origin, and embed their credentials in the commandline using
git remote - Sync their repo using
git pull upstream master - Create a branch using
git branch BRANCHNAME - Change to their newly created branch using
git checkout BRANCHNAME - Edit and/or add one or more files
- Stage the files using
git add - Commit the files using
git commit -m "COMMIT MESSAGE" - Push the changes to Github using
git push origin BRANCHNAME - Go to Github and create a pull request
- View their changes in the staging site
-
Leave the final third of the training session for questions (of which there will be many).
-
Follow up after the training to let the partners know that they can reply on you as a git/github/workflow SME.
-
Actively seek out opportunities for the partners to make small changes and contributions to the documentation.
The current docs.microsoft.com repos are: