@ -19,7 +19,7 @@ Licensing is very important to open source projects. It helps ensure the
software continues to be available under the terms that the author desired.
software continues to be available under the terms that the author desired.
.. _Apache 2.0 license:
.. _Apache 2.0 license:
https://github.com/zephyrproject-rtos/zephyr/blob/master /LICENSE
https://github.com/zephyrproject-rtos/zephyr/blob/main /LICENSE
.. _GitHub repo: https://github.com/zephyrproject-rtos/zephyr
.. _GitHub repo: https://github.com/zephyrproject-rtos/zephyr
@ -428,14 +428,14 @@ workflow here:
upstream https://github.com/zephyrproject-rtos/zephyr (fetch)
upstream https://github.com/zephyrproject-rtos/zephyr (fetch)
upstream https://github.com/zephyrproject-rtos/zephyr (push)
upstream https://github.com/zephyrproject-rtos/zephyr (push)
#. Create a topic branch (off of master ) for your work (if you're addressing
#. Create a topic branch (off of main ) for your work (if you're addressing
an issue, we suggest including the issue number in the branch name)::
an issue, we suggest including the issue number in the branch name)::
git checkout master
git checkout main
git checkout -b fix_comment_typo
git checkout -b fix_comment_typo
Some Zephyr subsystems do development work on a separate branch from
Some Zephyr subsystems do development work on a separate branch from
master so you may need to indicate this in your checkout::
main so you may need to indicate this in your checkout::
git checkout -b fix_out_of_date_patch origin/net
git checkout -b fix_out_of_date_patch origin/net
@ -477,9 +477,9 @@ workflow here:
pull request for the appropriate branch. The title and message from your
pull request for the appropriate branch. The title and message from your
commit message should appear as well.
commit message should appear as well.
#. If you're working on a subsystem branch that's not `` master `` ,
#. If you're working on a subsystem branch that's not `` main `` ,
you may need to change the intended branch for the pull request
you may need to change the intended branch for the pull request
here, for example, by changing the base branch from `` master `` to `` net `` .
here, for example, by changing the base branch from `` main `` to `` net `` .
#. GitHub will assign one or more suggested reviewers (based on the
#. GitHub will assign one or more suggested reviewers (based on the
CODEOWNERS file in the repo). If you are a project member, you can
CODEOWNERS file in the repo). If you are a project member, you can
@ -491,9 +491,9 @@ workflow here:
#. While you're waiting for your pull request to be accepted and merged, you
#. While you're waiting for your pull request to be accepted and merged, you
can create another branch to work on another issue. (Be sure to make your
can create another branch to work on another issue. (Be sure to make your
new branch off of master and not the previous branch.)::
new branch off of main and not the previous branch.)::
git checkout master
git checkout main
git checkout -b fix_another_issue
git checkout -b fix_another_issue
and use the same process described above to work on this new topic branch.
and use the same process described above to work on this new topic branch.
@ -502,7 +502,7 @@ workflow here:
commit(s) to fix review issues. In your development repo::
commit(s) to fix review issues. In your development repo::
git fetch --all
git fetch --all
git rebase --ignore-whitespace upstream/master
git rebase --ignore-whitespace upstream/main
The `` --ignore-whitespace `` option stops `` git apply `` (called by rebase)
The `` --ignore-whitespace `` option stops `` git apply `` (called by rebase)
from changing any whitespace. Continuing::
from changing any whitespace. Continuing::
@ -586,7 +586,7 @@ The description body of the commit message must include:
* * *how* * you know it works -- for example, which tests you ran.
* * *how* * you know it works -- for example, which tests you ran.
For examples of accepted commit messages, you can refer to the Zephyr GitHub
For examples of accepted commit messages, you can refer to the Zephyr GitHub
`changelog <https://github.com/zephyrproject-rtos/zephyr/commits/master > `__ .
`changelog <https://github.com/zephyrproject-rtos/zephyr/commits/main > `__ .
Other Commit Expectations
Other Commit Expectations
=========================
=========================