@@ -75,10 +75,6 @@ you probably don't need to build this site.
75
75
Often you can make changes using the GitHub UI.
76
76
If needed, we can stage the changes automatically in your pull request.
77
77
78
- > [ !IMPORTANT]
79
- > If you are cloning this repository locally,
80
- > follow the below instruction on cloning with its submodule.
81
-
82
78
If your change involves code samples, adds/removes pages, or affects navigation,
83
79
do consider building and testing your work before submitting.
84
80
@@ -133,52 +129,28 @@ follow the update instructions for how you originally installed it.
133
129
[ Node.js download archive ] : https://nodejs.org/en/download/
134
130
[ nvm ] : https://github.com/nvm-sh/nvm
135
131
136
- ### Clone this repo and its submodules
137
-
138
- > [ !NOTE]
139
- > This repository has git _ submodules_ , which affects how you clone it.
140
- > The GitHub documentation has general help on
141
- > [ forking] [ ] and [ cloning] [ ] repos.
132
+ ### Clone this repo
142
133
143
134
If you're not a member of the Flutter organization,
144
- we recommend you ** create a fork** of this repo under your own account,
135
+ we recommend you [ create a fork] [ ] of this repo under your own account,
145
136
and then submit a PR from that fork.
146
137
147
138
Once you have a fork (or you're a Flutter org member),
148
- _ choose one_ of the following submodule-cloning techniques:
149
-
150
- 1 . Clone the repo and its submodule at the same time
151
- using the ` --recurse-submodules ` option:
152
-
153
- ``` console
154
- git clone --recurse-submodules https://github.com/flutter/website.git
155
- ```
139
+ clone the repository with ` git clone ` :
156
140
157
- 2 . If you've already cloned the repo without its submodule,
158
- then run this command from the root of the repository:
159
-
160
- ``` console
161
- git submodule update --init --recursive
162
- ```
163
-
164
- > [ !NOTE]
165
- > At any time during development
166
- > you can use the ` git submodule ` command to refresh submodules:
167
- >
168
- > ``` console
169
- > git pull && git submodule update --init --recursive
170
- > ` ` `
141
+ ``` bash
142
+ git clone https://github.com/flutter/website.git
143
+ ```
171
144
172
- [cloning]: https://docs.github.com/repositories/creating-and-managing-repositories/cloning-a-repository
173
- [forking]: https://docs.github.com/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo
145
+ [ create a fork ] : https://docs.github.com/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo
174
146
175
147
## Set up your local environment and serve changes
176
148
177
149
Before you continue setting up the site infrastructure,
178
150
verify the correct versions of Flutter and Node.js are set up and available by
179
151
following the instructions in [ Get the prerequisites] ( #get-the-prerequisites ) .
180
152
181
- 1. _Optional:_ After cloning the repo and its submodules ,
153
+ 1 . _ Optional:_ After cloning the repo,
182
154
create a branch for your changes:
183
155
184
156
``` console
0 commit comments