-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_github.bat
More file actions
112 lines (94 loc) · 2.89 KB
/
setup_github.bat
File metadata and controls
112 lines (94 loc) · 2.89 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
@echo off
REM GitHub Repository Setup Script for Windows
REM This script will help you create and push to a new GitHub repository
echo.
echo ========================================
echo GitHub Repository Setup
echo ========================================
echo.
REM Check if git is installed
git --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Git is not installed. Please install Git first.
echo Download from: https://git-scm.com/download/win
pause
exit /b 1
)
echo [OK] Git is installed
echo.
REM Get repository name
set /p REPO_NAME="Enter repository name (e.g., virtual-hand-controller): "
if "%REPO_NAME%"=="" (
echo ERROR: Repository name cannot be empty
pause
exit /b 1
)
REM Get GitHub username
set /p GITHUB_USERNAME="Enter your GitHub username: "
if "%GITHUB_USERNAME%"=="" (
echo ERROR: GitHub username cannot be empty
pause
exit /b 1
)
echo.
echo Repository Details:
echo Name: %REPO_NAME%
echo Username: %GITHUB_USERNAME%
echo URL: https://github.com/%GITHUB_USERNAME%/%REPO_NAME%
echo.
set /p CONFIRM="Continue? (y/n): "
if /i not "%CONFIRM%"=="y" (
echo Setup cancelled
pause
exit /b 0
)
echo.
echo Setting up repository...
echo.
REM Replace README_PUBLIC.md with README.md
if exist "README_PUBLIC.md" (
echo [1/6] Replacing README.md with public version...
copy /y README_PUBLIC.md README.md >nul
) else (
echo [1/6] README_PUBLIC.md not found, skipping...
)
REM Initialize git repository
if not exist ".git" (
echo [2/6] Initializing git repository...
git init
) else (
echo [2/6] Git repository already initialized
)
REM Add all files
echo [3/6] Adding files...
git add .
REM Create initial commit
echo [4/6] Creating initial commit...
git commit -m "Initial commit: Virtual Hand Controller with modern UI" -m "Features:" -m "- Virtual mouse control with hand gestures" -m "- Virtual keyboard with hover-to-type" -m "- Extreme detection (0.1 threshold) for easy hand detection" -m "- Modern UI with professional design" -m "- Works with either hand (left or right)" -m "- ~60 FPS performance" -m "- Automatic image enhancement"
REM Add remote
echo [5/6] Adding remote repository...
git remote remove origin >nul 2>&1
git remote add origin "https://github.com/%GITHUB_USERNAME%/%REPO_NAME%.git"
REM Set main branch
echo [6/6] Setting main branch...
git branch -M main
echo.
echo ========================================
echo Local setup complete!
echo ========================================
echo.
echo Next steps:
echo 1. Go to https://github.com/new
echo 2. Create a new repository named: %REPO_NAME%
echo 3. Make it PUBLIC
echo 4. Do NOT initialize with README, .gitignore, or license
echo 5. After creating the repository, run:
echo.
echo git push -u origin main
echo.
echo Your repository will be live at:
echo https://github.com/%GITHUB_USERNAME%/%REPO_NAME%
echo.
echo ========================================
echo.
pause