-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupload_to_github.bat
More file actions
64 lines (53 loc) · 1.39 KB
/
upload_to_github.bat
File metadata and controls
64 lines (53 loc) · 1.39 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
@echo off
echo ========================================
echo pySystemCleaner - GitHub Upload Script
echo ========================================
echo.
cd /d "%~dp0"
echo Checking for Git...
where git >nul 2>nul
if %errorlevel% neq 0 (
echo [ERROR] Git is not installed!
echo Download it from: https://git-scm.com/download/win
echo.
pause
exit /b 1
)
echo [OK] Git found
echo.
echo Adding safe directory...
git config --global --add safe.directory "%cd%"
echo.
echo Initializing repository...
git init
echo.
echo Adding files...
git add .
echo.
echo Creating commit...
git commit -m "Initial commit - pySystemCleaner system cleaning tool"
echo.
echo Setting up remote...
git branch -M main
git remote remove origin >nul 2>nul
set /p TOKEN=Enter your GitHub Personal Access Token:
git remote add origin https://ZxPwdz:%TOKEN%@github.com/ZxPwdz/pySystemCleaner.git
echo.
echo Pushing to GitHub...
git push -u origin main --force
echo.
if %errorlevel% equ 0 (
echo ========================================
echo Upload Complete!
echo ========================================
echo.
echo Your repository: https://github.com/ZxPwdz/pySystemCleaner
) else (
echo ========================================
echo Upload Failed
echo ========================================
echo.
echo Make sure your token has "repo" permissions.
)
echo.
pause