-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwin-upload.bat
35 lines (27 loc) · 1.19 KB
/
win-upload.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@REM try "sh upload.sh" or "bash upload.sh" or ".\upload.sh" or "./upload.sh" to run this script
echo '--------upload files start--------'
@REM enter the target folder
cd ./
@REM git init
git add .
git status
@REM git commit -m "auto commit by win-upload.ba"
git commit -m "auto commit by win-upload.bat"
echo '--------commit successfully--------'
@REM git push -f https://github.com/Shuaiwen-Cui/MCU_NODE_STM32.git main
git push -f https://github.com/Shuaiwen-Cui/MCU_NODE_STM32.git main
@REM git remote add origin https://github.com/Shuaiwen-Cui/MCU_NODE_STM32.git
@REM git push -u origin main
echo '--------push to GitHub successfully--------'
cd ./MCU_DOC/
mkdocs gh-deploy
echo '--------deployed to Github Pages sucessfully--------'
@REM git push -f <url> master
@REM git push -u <url> master
@REM git remote add origin <url>
@REM git push -u origin master
@REM echo '--------push to Gitee successfully--------'
@REM if to deploy to https://<USERNAME>.github.io/<REPO>
@REM git push -f git@github.com:<USERNAME>/<REPO>.git master:gh-pages
@REM done
@REM if authentication required, username is your GitHub username and password is your GitHub password (deprecated) or personal access token (recommended).