Dieser Commit ist enthalten in:
Claude Project Manager
2025-07-07 22:11:38 +02:00
Commit ec92da8a64
73 geänderte Dateien mit 16367 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,46 @@
@echo off
echo Fixing website-main LFS and branch issues...
echo.
cd /d "C:\Users\hendr\Desktop\IntelSight\website-main"
echo Step 1: Checking for LFS files...
git lfs ls-files
echo.
echo Step 2: Removing LFS tracking (if any)...
if exist .gitattributes (
echo Backing up .gitattributes...
copy .gitattributes .gitattributes.backup
echo Removing LFS entries...
powershell -Command "(Get-Content .gitattributes) | Where-Object {$_ -notmatch 'filter=lfs'} | Set-Content .gitattributes.temp"
move /y .gitattributes.temp .gitattributes
git add .gitattributes
git commit -m "Remove LFS tracking" 2>nul
)
echo.
echo Step 3: Checking which files are tracked by LFS...
git lfs ls-files
for /f "tokens=3" %%i in ('git lfs ls-files') do (
echo Removing LFS tracking for: %%i
git rm --cached %%i
git add %%i
)
echo.
echo Step 4: Renaming branch from master to main...
git branch -m master main
echo.
echo Step 5: Pushing to main branch...
git push -u origin main --force
echo.
echo Done! If push still fails, try:
echo 1. Delete .git/hooks/pre-push (if exists)
echo 2. Run: git push --no-verify -u origin main
echo.
pause