-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy_to_github.bat
More file actions
58 lines (50 loc) · 1.52 KB
/
Copy pathdeploy_to_github.bat
File metadata and controls
58 lines (50 loc) · 1.52 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
@echo off
chcp 65001 >nul
echo ========================================
echo Deploy to GitHub Repository
echo ========================================
echo Repository: https://github.com/2extndd/KFS2
echo ========================================
echo.
echo Step 1: Initializing Git repository...
if not exist ".git" (
git init
echo Git repository initialized.
) else (
echo Git repository already exists.
)
echo.
echo Step 2: Adding all files...
git add -A
echo.
echo Step 3: Making commit...
git commit -m "Update project - Fixed Git issues and improved functionality
- Fixed commit_all.bat with proper UTF-8 support
- Added setup_git.bat for repository initialization
- Added setup_github.bat for remote configuration
- Added commit_and_push.bat for simple operations
- Added update_github_repo.bat for updates
- Added deploy_to_github.bat for complete deployment
- Improved error handling and validation
- Added GIT_SETUP_INSTRUCTIONS.md with detailed guide
- Enhanced duplicate prevention system
- Improved logging system for sent items"
echo.
echo Step 4: Setting up remote origin...
git remote remove origin 2>nul
git remote add origin https://github.com/2extndd/KFS2.git
echo.
echo Step 5: Setting main branch...
git branch -M main
echo.
echo Step 6: Pushing to GitHub...
git push -u origin main
echo.
echo ========================================
echo Deployment completed successfully!
echo ========================================
echo.
echo Your project is now available at:
echo https://github.com/2extndd/KFS2
echo.
pause