Skip to content

Commit 4707955

Browse files
shubhamdppull[bot]
authored andcommitted
[ESP32] Fix the docs when upgrading to esp-idf v5.1 (#28570)
1 parent 7343099 commit 4707955

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

docs/guides/esp32/setup_idf_chip.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,22 @@ step.
2222
[v5.1 release](https://github.com/espressif/esp-idf/releases/tag/v5.1)
2323

2424
```
25-
$ git clone -b v5.1 --recursive --depth 1 --shallow-submodule https://github.com/espressif/esp-idf.git
26-
$ cd esp-idf
27-
$ ./install.sh
25+
git clone -b v5.1 --recursive --depth 1 --shallow-submodule https://github.com/espressif/esp-idf.git
26+
cd esp-idf
27+
./install.sh
2828
```
2929
3030
- To update an existing esp-idf toolchain to v5.1:
3131
3232
```
33-
$ cd path/to/esp-idf
34-
$ git fetch origin
35-
$ git checkout v5.1
36-
$ git reset --hard origin/v5.1
37-
$ git submodule update --recursive --init
38-
$ git clean -fdx
39-
$ ./install.sh
33+
cd path/to/esp-idf
34+
git fetch --depth 1 origin v5.1
35+
git reset --hard FETCH_HEAD
36+
git submodule update --depth 1 --recursive --init
37+
38+
# -ff is for cleaning untracked files as well as submodules
39+
git clean -ffdx
40+
./install.sh
4041
```
4142
4243
## Setup Matter environment

0 commit comments

Comments
 (0)