Files
ClaudeProjectManager-main/scripts/fix_website_final.bat
Claude Project Manager ec92da8a64 Initial commit
2025-07-07 22:11:38 +02:00

54 Zeilen
1.4 KiB
Batchfile

@echo off
echo Final fix for website-main...
echo.
cd /d "C:\Users\hendr\Desktop\IntelSight\website-main"
echo Step 1: Removing Git LFS completely...
git lfs uninstall
echo.
echo Step 2: Checking current status...
git status
echo.
echo Step 3: The video file is missing! Let's check...
if not exist "assets\videos\background.mp4" (
echo ERROR: background.mp4 was removed by LFS!
echo You need to restore it from backup or remove it from the repository.
echo.
echo Option A: Remove from repository
echo Run: git rm assets/videos/background.mp4
echo git commit -m "Remove video file"
echo.
echo Option B: Add to .gitignore
echo Add this line to .gitignore: assets/videos/background.mp4
echo.
) else (
echo File exists. Adding it back...
git add assets/videos/background.mp4
git commit -m "Re-add video file without LFS"
)
echo.
echo Step 4: Removing LFS hooks...
if exist .git\hooks\pre-push (
del .git\hooks\pre-push
echo Removed pre-push hook
)
echo.
echo Step 5: Try push with --no-verify...
git push --no-verify -u origin main
echo.
echo If still failing, the video file might be too large (>100MB).
echo In that case, add it to .gitignore:
echo.
echo echo assets/videos/background.mp4 >> .gitignore
echo git rm --cached assets/videos/background.mp4
echo git add .gitignore
echo git commit -m "Remove large video file"
echo git push -u origin main
echo.
pause