You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4d6ab5e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,12 @@ This repo contains the source code and documentation powering [react.dev](https:
10
10
1. Node: v18.18.0 or greater (see supported versions in [`package.json`](./package.json))
11
11
1. Yarn Classic 1.22.22: See [Yarn website for installation instructions](https://classic.yarnpkg.com/en/docs/install/)
12
12
1. A fork of the repo (for any contributions)
13
-
1. A clone of your fork of the [react.dev repo](https://github.com/reactjs/react.dev) on your local machine
13
+
1. A clone of the [react.dev repo](https://github.com/reactjs/react.dev) on your local machine
14
14
15
15
### Installation
16
16
17
17
1.`cd react.dev` to go into the project root
18
+
2.`git remote add my-fork-name https://github.com/YOUR_USERNAME/react.dev.git` to add your fork as a remote (replace `YOUR_USERNAME` with your GitHub username; only needed once)
18
19
3.`yarn` to install the website's npm dependencies
19
20
20
21
### Running locally
@@ -30,9 +31,8 @@ The documentation is divided into several sections with a different tone and pur
30
31
31
32
### Create a branch
32
33
33
-
1.`git remote add upstream https://github.com/reactjs/react.dev.git` to add the source repo as a remote (only needed once)
34
34
1.`git checkout main` from any folder in your local `react.dev` repository
35
-
1.`git pull --ff-only upstream main` to ensure you have the latest main code
35
+
1.`git pull origin main` to ensure you have the latest main code
36
36
1.`git checkout -b the-name-of-my-branch` (replacing `the-name-of-my-branch` with a suitable name) to create a branch
37
37
38
38
### Make the change
@@ -52,7 +52,7 @@ The documentation is divided into several sections with a different tone and pur
52
52
### Push it
53
53
54
54
1.`git add -A && git commit -m "My message"` (replacing `My message` with a commit message, such as `Fix header logo on Android`) to stage and commit your changes
55
-
1.`git push origin the-name-of-my-branch`
55
+
1.`git push my-fork-name the-name-of-my-branch`
56
56
1. Go to the [react.dev repo](https://github.com/reactjs/react.dev) and you should see recently pushed branches.
57
57
1. Follow GitHub's instructions.
58
58
1. If possible, include screenshots of visual changes. A preview build is triggered after your changes are pushed to GitHub.
0 commit comments