-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforce_deploy_to_github.bat
More file actions
63 lines (55 loc) · 1.76 KB
/
Copy pathforce_deploy_to_github.bat
File metadata and controls
63 lines (55 loc) · 1.76 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
@echo off
chcp 65001 >nul
echo ========================================
echo Force Deploy to GitHub Repository
echo ========================================
echo Repository: https://github.com/2extndd/KFS2
echo WARNING: This will overwrite remote repository!
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: Setting up remote origin...
git remote remove origin 2>nul
git remote add origin https://github.com/2extndd/KFS2.git
echo.
echo Step 3: Setting main branch...
git branch -M main
echo.
echo Step 4: Adding all local changes...
git add -A
echo.
echo Step 5: 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
- Added deploy_to_github_fixed.bat for proper sync
- Added force_deploy_to_github.bat for force push
- 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 6: Force pushing to GitHub (overwrites remote)...
git push -f origin main
echo.
echo ========================================
echo Force deployment completed!
echo ========================================
echo.
echo Your project is now available at:
echo https://github.com/2extndd/KFS2
echo.
echo WARNING: Remote repository was overwritten!
echo.
pause