加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jihu-mirror.sh 4.54 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
#
# Redirects github repos to jihu mirrors.
#
#
set -e
set -u
## repos group
REPOS_ARRAY=(
ARMmbed/mbed-os-cypress-capsense-button
ARMmbed/mbed-os-posix-socket
ARMmbed/mbed-os
ARMmbed/mbedtls
ATmobica/mcuboot
bouffalolab/bl_iot_sdk
cypresssemiconductorco/core-lib
cypresssemiconductorco/cy-mbedtls-acceleration
cypresssemiconductorco/mtb-pdl-cat1
cypresssemiconductorco/psoc6pdl
cypresssemiconductorco/psoc6hal
cypresssemiconductorco/retarget-io
DaveGamble/cJSON
eclipse/tinydtls
espressif/asio
espressif/aws-iot-device-sdk-embedded-C
espressif/connectedhomeip
espressif/esp-adf
espressif/esp-adf-libs
espressif/esp-at
espressif/esp-bootloader-plus
espressif/esp-box
espressif/esp-coex-lib
espressif/esp-cryptoauthlib
espressif/esp-dl
espressif/esp-idf
espressif/esp-ieee802154-lib
espressif/esp-insights
espressif/esp-iot-bridge
espressif/esp-iot-solution
espressif/esp-lwip
espressif/esp-matter
espressif/esp-mqtt
espressif/esp-nimble
espressif/esp-phy-lib
espressif/esp-rainmaker
espressif/esp-rainmaker-cli
espressif/esp-rainmaker-common
espressif/esp-sr
espressif/esp-thread-lib
espressif/esp-who
espressif/esp32-bt-lib
espressif/esp32-camera
espressif/esp32-wifi-lib
espressif/esp32c2-bt-lib
espressif/esp32c3-bt-lib
espressif/esp32c6-bt-lib
espressif/esp32h2-bt-lib
espressif/esptool
espressif/json_generator
espressif/json_parser
espressif/mbedtls
espressif/openthread
espressif/tinyusb
espressif/tlsf
FreeRTOS/FreeRTOS-Kernel
google/boringssl
google/pigweed
h2o/neverbleed
Infineon/abstraction-rtos
Infineon/anycloud-ota
Infineon/bluetooth-freertos
Infineon/btsdk-include
Infineon/btsdk-tools
Infineon/btstack
Infineon/clib-support
Infineon/connectivity-utilities
Infineon/core-lib
Infineon/core-make
Infineon/freertos
Infineon/kv-store
Infineon/mtb-hal-cat1
Infineon/mtb-pdl-cat1
Infineon/ot-ifx-release
Infineon/OT-Matter-30739A0
Infineon/OT-Matter-TARGET_CYW930739M2EVB-01
Infineon/psoc6cm0p
Infineon/recipe-make-cat1a
Infineon/retarget-io
Infineon/secure-sockets
Infineon/serial-flash
Infineon/TARGET_CY8CKIT-062S2-43012
Infineon/whd-bsp-integration
Infineon/wifi-connection-manager
Infineon/wifi-host-driver
Infineon/wifi-mw-core
intel/tinycbor
jedisct1/libsodium
jeremyjh/ESP32_TFT_library
kmackay/micro-ecc
leethomason/tinyxml2
libexpat/libexpat
littlevgl/lv_examples
lvgl/lvgl
lwip-tcpip/lwip
matter-mtk/genio-matter-lwip
matter-mtk/genio-matter-mdnsresponder
MediaTek-Labs/genio-matter-bsp
mruby/mruby
nayuki/QR-Code-generator
nanopb/nanopb
nestlabs/nlassert
nestlabs/nlfaultinjection
nestlabs/nlio
nestlabs/nlunit-test
nghttp2/nghttp2
nodejs/http-parser
NordicSemiconductor/cddl-gen
NXP/plug-and-trust
NXPmicro/mbedtls
nxptest/mw320_sdk
obgm/libcoap
ocornut/imgui
open-source-parsers/jsoncpp
openthread/ot-br-posix
openthread/ot-nxp
openthread/ot-qorvo
openthread/openthread
openweave/cirque
pellepl/spiffs
project-chip/zap
protobuf-c/protobuf-c
pybind/pybind11
Qorvo/qpg-connectedhomeip
Qorvo/qpg-openthread
Qorvo/QMatter
SiliconLabs/gecko_sdk
SiliconLabs/openthread
SiliconLabs/ot-efr32
SiliconLabs/sdk_support
SiliconLabs/wiseconnect-wifi-bt-sdk
tatsuhiro-t/neverbleed
telink-semi/telink_b91_ble_single_connection_sdk_matter
TexasInstruments/cc13xx_cc26xx_sdk
TexasInstruments/cc32xx_open_sdk
ThrowTheSwitch/CMock
throwtheswitch/cexception
throwtheswitch/unity
ThrowTheSwitch/Unity
troglobit/editline
warmcat/libwebsockets
zserge/jsmn
)
len=${#REPOS_ARRAY[@]}
if [[ "$@" == "" ]]; then
echo "Usage:"
echo " Set the mirror: ./jihu-mirror.sh set"
echo " Unset the mirror: ./jihu-mirror.sh unset"
fi
for ((i = 0; i < len; i++))
do
REPO=${REPOS_ARRAY[i]}
if [[ "$@" == "set" ]]; then
git config --global url.https://jihulab.com/esp-mirror/$REPO.insteadOf https://github.com/$REPO
git config --global url.https://jihulab.com/esp-mirror/$REPO.git.insteadOf https://github.com/$REPO
elif [[ "$@" == "unset" ]]; then
git config --global --unset url.https://jihulab.com/esp-mirror/$REPO.insteadof
git config --global --unset url.https://jihulab.com/esp-mirror/$REPO.git.insteadof
fi
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化