Once your Git flow is set up, you can make changes to the repository.
For returning users - Ensure that you are up to date with the ms-iot repo:
git fetch ms-iot
git reset --hard ms-iot/develop
git push origin develop
Note: This will delete all local changes and push ms-iot to your fork, so be sure this is what you want
- Read the rules.
- Changes that do not follow the guidelines will be rejected
- Test your code!!
- If you are adding a new document, ensure that the files and images are saved in the correct folders
- Commit changes
- When ready, add the files you want to to be staged for commit:
*
git add [file]
- Once done, commit your changes:
*
git commit -m "[descriptive message]"
A pull request (PR) is a request to the ms-iot team to accept your changes. It must first be approved by the team, but once accepted, it will immediately go live.
-
Grab the latest changes from upstream
git fetch ms-iot
-
Merge it into your local repository
git merge ms-iot/develop
- If you run into conflicts, you will have to hand-merge (you can use your favorite merging tool or even notepad for this)
- After hand-merging, you can continue the merge
git add [fileYouHandMerged]
-
Check your repositories status
git status
. You may need to continue the merge to finish
-
Push your changes to your forked repository.
git push origin develop
-
Submit your pull request from your forked repository using the GitHub website
- If it's your first pull request, sign the Contribution License Agreement
- Without completing this step, we unfortunately cannot accept a pull request. You only need to do this once
- Make your new changes, fetch upstream, merge upstream, and push your changes
- If your pull request was never closed, you should not have to submit a new pull request. It should automatically update
When evaluating PRs, the following guidelines must be met:
- Must be auto-mergable.
- You should have done the work so that we can automatically merge your changes with the current state of the repository. Otherwise we will reject your pull-request and wait until you have fixed it
- If, after you make your changes and submit your PR, you find it cannot be automerged, simply update your fork with the latest from our repo and fix the conflicts - that should make it auto-mergable
- Never have duplicate commits