第一步: idfv5.3.1 on Sep 3, 2024 c8fc5f6 https://github.com/espressif/esp-idf/tree/c8fc5f643b7a7b0d3b182d3df610844e3dc9bd74 $ git clone https://gitee.com/bakecool/esp-idf.git --branch v5.3.1 --single-branch $ git log -1 commit c8fc5f643b7a7b0d3b182d3df610844e3dc9bd74 (HEAD, tag: v5.3.1) Author: Marius Vikhammer Date: Tue Sep 3 09:37:24 2024 +0800 change(version): Update version to 5.3.1 $ git status Not currently on any branch. $ git checkout v5.3.1 $ git log --oneline -1 c8fc5f643b (HEAD, tag: v5.3.1) change(version): Update version to 5.3.1 $ git reset --hard HEAD is now at c8fc5f643b change(version): Update version to 5.3.1 第二步: 关掉梯子之后操作。 Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1 $ git clone https://gitee.com/EspressifSystems/esp-adf.git Cloning into 'esp-adf'... remote: Enumerating objects: 18834, done. remote: Counting objects: 100% (123/123), done. remote: Compressing objects: 100% (116/116), done. remote: Total 18834 (delta 23), reused 0 (delta 0), pack-reused 18711 (from 1) Receiving objects: 100% (18834/18834), 140.96 MiB | 8.65 MiB/s, done. Resolving deltas: 100% (12927/12927), done. Updating files: 100% (2239/2239), done. Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1 $ cd esp-adf Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1/esp-adf (master) $ cd components Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1/esp-adf/components (master) $ rm -d esp-sr Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1/esp-adf/components (master) $ rm -d esp-adf-libs Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1/esp-adf/components (master) $ 第三步: esp-adf-libs 2025年3月25日 https://github.com/espressif/esp-adf-libs/tree/111abec988d72890b8aaa61a69297c5039c13a94 $ git clone https://gitee.com/bakecool/esp-adf-libs.git Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1/esp-adf/components (master) $ cd esp-adf-libs Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1/esp-adf/components/esp-adf-libs (master) $ git checkout 111abec988d72890b8aaa61a69297c5039c13a94 -b temp-branch Switched to a new branch 'temp-branch' 第四步: esp-sr Sep 4, 2024 release esp-sr v1.9.2 https://github.com/espressif/esp-sr/tree/394aae67b578cf45ed13dad9c2e0c428f5d599f0 $ git clone https://gitee.com/bakecool/esp-sr.git Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1/esp-adf/components (master) $ cd esp-sr Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1/esp-adf/components/esp-sr (master) $ git checkout v1.9.5 Note: switching to 'v1.9.5'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 8e2601e release v1.9.5 Administrator@PC-202312022041 MINGW64 /d/IDF/v5.3.1/esp-adf/components/esp-sr ((v1.9.5)) $