-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush_to_github.bat
More file actions
77 lines (65 loc) · 1.75 KB
/
Copy pathpush_to_github.bat
File metadata and controls
77 lines (65 loc) · 1.75 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@echo off
chcp 65001 >nul
title Push to GitHub
echo ==========================================
echo ComWeChatBot-Ellie - GitHub 提交工具
echo ==========================================
echo.
set /p GITHUB_USERNAME="Enter your GitHub username: "
set REPO_NAME=ComWeChatBot-Ellie
set GITHUB_URL=https://github.com/%GITHUB_USERNAME%/%REPO_NAME%.git
echo.
echo [INFO] GitHub URL will be: %GITHUB_URL%
echo.
pause
cd /d "%~dp0"
echo.
echo [1/5] Initializing Git repository...
git init
if errorlevel 1 (
echo [ERROR] Git not installed. Please install Git first.
pause
exit /b 1
)
echo.
echo [2/5] Adding files to staging area...
git add .
echo.
echo [3/5] Committing changes...
git commit -m "feat: initial release - ComWeChatBot for Ellie Williams
- Add WeChat auto-reply functionality
- Support private and group chat
- Support quote messages
- Add one-click startup scripts
- Add Windows auto-start support
- Add OpenClaw integration
- Add error handling and logging"
echo.
echo [4/5] Adding remote repository...
git remote add origin %GITHUB_URL% 2>nul || git remote set-url origin %GITHUB_URL%
echo.
echo [5/5] Pushing to GitHub...
git branch -M main
git push -u origin main
if errorlevel 1 (
echo.
echo [ERROR] Push failed. Possible reasons:
echo 1. Repository does not exist on GitHub
echo 2. Authentication failed
echo 3. Network issues
echo.
echo Please check:
echo - Create repository on GitHub first
echo - Check your username: %GITHUB_USERNAME%
echo - Make sure you have push access
pause
exit /b 1
)
echo.
echo ==========================================
echo [SUCCESS] Code pushed to GitHub!
echo ==========================================
echo.
echo Repository URL: %GITHUB_URL%
echo.
pause