强制checkout

This commit is contained in:
HEYAHONG 2023-06-05 14:32:06 +08:00
parent d95339a410
commit 0646e4fb85
No known key found for this signature in database
GPG Key ID: 45495019025D566D

View File

@ -90,7 +90,7 @@ echo -e "\033[44;37m当前分支为${GIT_BRANCH}\033[40;37m"
cd ${ROOT_PATH}/rt-thread
echo -e "\033[44;37m获取rt-thread源代码\033[40;37m"
git fetch
git checkout ${GIT_BRANCH}
git checkout --force ${GIT_BRANCH}
git clean -x -f -d
git pull
echo `git rev-parse --verify HEAD` > ${ROOT_PATH}/version