mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
PR feedback changes
This commit is contained in:
@@ -29,7 +29,7 @@ Here's how to do it:
|
|||||||
sign up.
|
sign up.
|
||||||
|
|
||||||
|
|
||||||
#. Fork the Project
|
#. Fork the Projects
|
||||||
|
|
||||||
Visit both these links and hit the Fork button in the upper right of the page:
|
Visit both these links and hit the Fork button in the upper right of the page:
|
||||||
|
|
||||||
@@ -37,33 +37,14 @@ Here's how to do it:
|
|||||||
* `NuttX Apps <https://github.com/apache/incubator-nuttx-apps/>`_
|
* `NuttX Apps <https://github.com/apache/incubator-nuttx-apps/>`_
|
||||||
|
|
||||||
|
|
||||||
#. Change the Git Remotes
|
#. Clone the Repositories
|
||||||
|
|
||||||
The git repositories in your project are currently connected to the official NuttX repositories, but you don't
|
On the GitHub web page for your forked ``incubator-nuttx`` project, copy the clone url – get it by hitting the
|
||||||
have permission to push software there. But you can push them to your forks, and from there create Pull Requests
|
|
||||||
if you want to send them to the NuttX project.
|
|
||||||
|
|
||||||
First, remove the current remote, ``origin`` (we'll add it back later):
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
$ cd nuttx/
|
|
||||||
$ # display the remote
|
|
||||||
$ git remote -v
|
|
||||||
|
|
||||||
You should see something like this:
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
origin https://github.com/apache/incubator-nuttx.git
|
|
||||||
|
|
||||||
Now, on the GitHub web page for your forked ``incubator-nuttx`` project, copy the clone url – get it by hitting the
|
|
||||||
green ``Clone or Download`` button in the upper right. Then do this:
|
green ``Clone or Download`` button in the upper right. Then do this:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ git remote rm origin
|
$ git clone <your forked incubator-nuttx project clone url>
|
||||||
$ git remote add origin <your forked incubator-nuttx project clone url>
|
|
||||||
$ git remote add upstream https://github.com/apache/incubator-nuttx.git
|
$ git remote add upstream https://github.com/apache/incubator-nuttx.git
|
||||||
|
|
||||||
Do the same for your forked ``incubator-nuttx-apps`` project:
|
Do the same for your forked ``incubator-nuttx-apps`` project:
|
||||||
@@ -71,11 +52,9 @@ Here's how to do it:
|
|||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ cd ../apps
|
$ cd ../apps
|
||||||
$ git remote rm origin
|
$ git clone <your forked incubator-nuttx-apps project clone url>
|
||||||
$ git remote add origin <your forked incubator-nuttx-apps project clone url>
|
|
||||||
$ git remote add upstream https://github.com/apache/incubator-nuttx-apps.git
|
$ git remote add upstream https://github.com/apache/incubator-nuttx-apps.git
|
||||||
|
|
||||||
|
|
||||||
#. Create a Local Git Branch
|
#. Create a Local Git Branch
|
||||||
|
|
||||||
Now you can create local git branches and push them to GitHub:
|
Now you can create local git branches and push them to GitHub:
|
||||||
|
|||||||
Reference in New Issue
Block a user