-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug-and-force-commit.bat
More file actions
58 lines (48 loc) · 1.18 KB
/
debug-and-force-commit.bat
File metadata and controls
58 lines (48 loc) · 1.18 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
echo ===============================================
echo DEBUGGING: CHECK GIT STATUS AND FORCE COMMIT
echo ===============================================
echo Current directory:
cd
echo.
echo Git status:
git status
echo.
echo Checking if package-lock.json exists:
if exist package-lock.json (
echo ✅ package-lock.json EXISTS locally
dir package-lock.json
) else (
echo ❌ package-lock.json NOT FOUND locally!
echo Regenerating package-lock.json...
del package-lock.json 2>nul
npm install
)
echo.
echo Checking .gitignore content:
echo === .gitignore content ===
type .gitignore
echo === end of .gitignore ===
echo.
echo Force adding files:
git add --force package-lock.json
git add .gitignore
git add package.json
git add vercel.json
echo.
echo Git status after adding:
git status
echo.
echo Committing with new hash:
git commit -m "FORCE FIX: Commit package-lock.json - attempt %RANDOM%"
echo.
echo Pushing to GitHub:
git push origin main
echo.
echo Latest commit info:
git log --oneline -1
echo.
echo ===============================================
echo ✅ CHECKING COMPLETE - CHECK VERCEL NOW!
echo ===============================================
pause