git clone https://gitee.com/bakecool/esp-adf.git git clone https://github.com/espressif/esp-idf.git --branch c8fc5f643b7a7b0d3b182d3df610844e3dc9bd74 Administrator@PC-202312022041 MINGW64 /e/IDFAndADF $ git clone https://gitee.com/bakecool/esp-adf.git Cloning into 'esp-adf'... remote: Enumerating objects: 18766, done. remote: Counting objects: 100% (18766/18766), done. remote: Compressing objects: 100% (6443/6443), done. remote: Total 18766 (delta 12010), reused 18766 (delta 12010), pack-reused 0 Receiving objects: 100% (18766/18766), 140.30 MiB | 8.30 MiB/s, done. Resolving deltas: 100% (12010/12010), done. Updating files: 100% (2236/2236), done. 下载网址 https://github.com/espressif/esp-idf/tree/c8fc5f643b7a7b0d3b182d3df610844e3dc9bd74 Administrator@PC-202312022041 MINGW64 /e/IDFAndADF $ git clone https://gitee.com/bakecool/esp-idf.git --branch c8fc5f643b7a7b0d3b182d3df610844e3dc9bd74 Cloning into 'esp-idf'... fatal: Remote branch c8fc5f643b7a7b0d3b182d3df610844e3dc9bd74 not found in upstream origin Administrator@PC-202312022041 MINGW64 /e/IDFAndADF $ git clone https://gitee.com/bakecool/esp-idf.git --branch v5.3.1 --single-branch Cloning into 'esp-idf'... remote: Enumerating objects: 423636, done. remote: Counting objects: 100% (423636/423636), done. remote: Compressing objects: 100% (96607/96607), done. remote: Total 423636 (delta 310302), reused 423635 (delta 310301), pack-reused 0 Receiving objects: 100% (423636/423636), 234.15 MiB | 11.12 MiB/s, done. Resolving deltas: 100% (310302/310302), done. Note: switching to 'c8fc5f643b7a7b0d3b182d3df610844e3dc9bd74'. 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 Updating files: 100% (14882/14882), done. Administrator@PC-202312022041 MINGW64 /e/IDFAndADF $ Administrator@PC-202312022041 MINGW64 /e/IDFAndADF $ cd esp-idf Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-idf ((v5.3.1)) $ 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 Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-idf ((v5.3.1)) Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-idf ((v5.3.1)) $ cd .. Administrator@PC-202312022041 MINGW64 /e/IDFAndADF $ pwd /e/IDFAndADF Administrator@PC-202312022041 MINGW64 /e/IDFAndADF $ cd esp-adf Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf (master) $ cd components Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components (master) $ rm -d esp-sr Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components (master) $ rm -d esp-adf-libs Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components (master) $ pwd /e/IDFAndADF/esp-adf/components 下载网址 https://github.com/espressif/esp-sr/tree/394aae67b578cf45ed13dad9c2e0c428f5d599f0 https://github.com/espressif/esp-adf-libs/tree/bf673bc1e76c7f85c9f8ce5eb924b076a1e80b22 用gitee找到对应年月日的commit,然后把commit换成tree即可 百度搜索“git clone指定版本”之后 3. 克隆后切换到特定提交 如果你想克隆仓库并直接切换到一个特定的提交(例如,一个哈希值),你可以这样做: git clone https://gitee.com/bakecool/esp-sr.git cd esp-sr git checkout -b temp-branch # 创建一个新分支指向该提交 git checkout 394aae67b578cf45ed13dad9c2e0c428f5d599f0 -b temp-branch Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components/esp-sr (master) $ git checkout 394aae67b578cf45ed13dad9c2e0c428f5d599f0 -b temp-branch Switched to a new branch 'temp-branch' Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components/esp-sr (temp-branch) $ git log -1 commit 394aae67b578cf45ed13dad9c2e0c428f5d599f0 (HEAD -> temp-branch) Merge: 1e8becc 7d536a4 Author: Sun Xiang Yu Date: Wed Sep 4 12:21:43 2024 +0800 Merge branch 'feat/update_nsnet2' into 'master' Feat/update nsnet2 See merge request speech-recognition-framework/esp-sr!110 Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components/esp-sr (temp-branch) $ cd .. Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components (master) $ pwd /e/IDFAndADF/esp-adf/components Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components (master) $ git clone https://gitee.com/bakecool/esp-adf-libs.git Cloning into 'esp-adf-libs'... remote: Enumerating objects: 4263, done. remote: Counting objects: 100% (4263/4263), done. remote: Compressing objects: 100% (2035/2035), done. remote: Total 4263 (delta 1908), reused 4263 (delta 1908), pack-reused 0 Receiving objects: 100% (4263/4263), 663.61 MiB | 10.94 MiB/s, done. Resolving deltas: 100% (1908/1908), done. Updating files: 100% (446/446), done. Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components (master) $ cd esp-adf-libs Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components/esp-adf-libs (master) $ git checkout bf673bc1e76c7f85c9f8ce5eb924b076a1e80b22 -b temp-branch Switched to a new branch 'temp-branch' Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components/esp-adf-libs (temp-branch) $ git log -1 commit bf673bc1e76c7f85c9f8ce5eb924b076a1e80b22 (HEAD -> temp-branch) Merge: c05b9bc 9038098 Author: Jason-mao Date: Fri Jan 17 10:41:24 2025 +0800 Merge branch 'feature/add_raw_opus_decoder_and_encoder' into 'master' esp_codec: Add raw opus encoder and decoder function See merge request adf/esp-adf-libs!276 Administrator@PC-202312022041 MINGW64 /e/IDFAndADF/esp-adf/components/esp-adf-libs (temp-branch) $