Initial commit
Dieser Commit ist enthalten in:
30
scripts/check_lfs_status.bat
Normale Datei
30
scripts/check_lfs_status.bat
Normale Datei
@ -0,0 +1,30 @@
|
||||
@echo off
|
||||
echo Checking Git LFS Status...
|
||||
echo =============================
|
||||
echo.
|
||||
|
||||
echo 1. LFS Version:
|
||||
git lfs version
|
||||
echo.
|
||||
|
||||
echo 2. LFS Environment:
|
||||
git lfs env
|
||||
echo.
|
||||
|
||||
echo 3. Tracked LFS patterns:
|
||||
git lfs track
|
||||
echo.
|
||||
|
||||
echo 4. LFS files in repository:
|
||||
git lfs ls-files
|
||||
echo.
|
||||
|
||||
echo 5. Verifying LFS remote:
|
||||
git lfs fsck
|
||||
echo.
|
||||
|
||||
echo 6. Current remotes:
|
||||
git remote -v
|
||||
echo.
|
||||
|
||||
pause
|
||||
19
scripts/fix_large_files.bat
Normale Datei
19
scripts/fix_large_files.bat
Normale Datei
@ -0,0 +1,19 @@
|
||||
@echo off
|
||||
echo Finding large files in repository...
|
||||
echo.
|
||||
|
||||
REM Find files larger than 100MB
|
||||
echo Files larger than 100MB:
|
||||
git ls-files -z | xargs -0 -n1 -I{} -- du -h {} | grep -E "^[0-9]+(M|G)" | sort -hr
|
||||
|
||||
echo.
|
||||
echo To add large files to Git LFS:
|
||||
echo 1. git lfs track "*.zip"
|
||||
echo 2. git lfs track "*.mp4"
|
||||
echo 3. git lfs track "path/to/largefile"
|
||||
echo.
|
||||
echo Then: git add .gitattributes
|
||||
echo git add [large files]
|
||||
echo git commit -m "Add LFS tracking"
|
||||
echo.
|
||||
pause
|
||||
24
scripts/fix_remote_organization.bat
Normale Datei
24
scripts/fix_remote_organization.bat
Normale Datei
@ -0,0 +1,24 @@
|
||||
@echo off
|
||||
echo Fixing Git Remote for IntelSight Organization
|
||||
echo =============================================
|
||||
echo.
|
||||
|
||||
echo Current remote:
|
||||
git remote -v
|
||||
echo.
|
||||
|
||||
echo Removing old remote...
|
||||
git remote remove origin
|
||||
|
||||
echo Adding new remote for IntelSight organization...
|
||||
git remote add origin https://gitea-undso.intelsight.de/IntelSight/website-main.git
|
||||
|
||||
echo.
|
||||
echo New remote:
|
||||
git remote -v
|
||||
echo.
|
||||
|
||||
echo Now push to the new remote:
|
||||
echo git push -u origin master
|
||||
echo.
|
||||
pause
|
||||
31
scripts/fix_website_auth.bat
Normale Datei
31
scripts/fix_website_auth.bat
Normale Datei
@ -0,0 +1,31 @@
|
||||
@echo off
|
||||
echo Fixing Authentication for website-main
|
||||
echo =====================================
|
||||
echo.
|
||||
|
||||
cd C:\Users\hendr\Desktop\IntelSight\website-main
|
||||
|
||||
echo Current remote:
|
||||
git remote -v
|
||||
echo.
|
||||
|
||||
echo Removing old remote...
|
||||
git remote remove origin
|
||||
|
||||
echo Adding authenticated remote...
|
||||
echo NOTE: Replace USERNAME and TOKEN with your actual Gitea credentials!
|
||||
echo.
|
||||
echo Example:
|
||||
echo git remote add origin https://USERNAME:TOKEN@gitea-undso.intelsight.de/IntelSight/website-main.git
|
||||
echo.
|
||||
echo Your current credentials from ClaudeProjectManager:
|
||||
echo Username: StuXn3t
|
||||
echo Token: 327caf5e04a43c35e67e0fb00e0a9cd269889db9
|
||||
echo.
|
||||
echo Run this command:
|
||||
echo git remote add origin https://StuXn3t:327caf5e04a43c35e67e0fb00e0a9cd269889db9@gitea-undso.intelsight.de/IntelSight/website-main.git
|
||||
echo.
|
||||
echo Then:
|
||||
echo git push -u origin master
|
||||
echo.
|
||||
pause
|
||||
54
scripts/fix_website_final.bat
Normale Datei
54
scripts/fix_website_final.bat
Normale Datei
@ -0,0 +1,54 @@
|
||||
@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
|
||||
46
scripts/fix_website_lfs_and_branch.bat
Normale Datei
46
scripts/fix_website_lfs_and_branch.bat
Normale Datei
@ -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
|
||||
37
scripts/fix_website_repo.bat
Normale Datei
37
scripts/fix_website_repo.bat
Normale Datei
@ -0,0 +1,37 @@
|
||||
@echo off
|
||||
echo Fixing website-main repository...
|
||||
echo.
|
||||
|
||||
cd /d "C:\Users\hendr\Desktop\IntelSight\website-main"
|
||||
|
||||
echo Step 1: Removing old remote...
|
||||
git remote remove origin 2>nul
|
||||
|
||||
echo Step 2: Checking/removing LFS configuration...
|
||||
if exist .gitattributes (
|
||||
findstr /C:"filter=lfs" .gitattributes >nul
|
||||
if %errorlevel%==0 (
|
||||
echo Found LFS configuration, creating backup...
|
||||
copy .gitattributes .gitattributes.backup
|
||||
|
||||
echo Removing LFS entries...
|
||||
powershell -Command "(Get-Content .gitattributes) | Where-Object {$_ -notmatch 'filter=lfs'} | Set-Content .gitattributes"
|
||||
|
||||
echo Unstaging LFS files...
|
||||
git rm --cached .gitattributes 2>nul
|
||||
git add .gitattributes
|
||||
)
|
||||
)
|
||||
|
||||
echo Step 3: Adding correct remote...
|
||||
git remote add origin https://IntelSight_Admin:3b4a6ba1ade3f34640f3c85d2333b4a3a0627471@gitea-undso.intelsight.de/IntelSight/website-main.git
|
||||
|
||||
echo Step 4: Verifying remote...
|
||||
git remote -v
|
||||
|
||||
echo.
|
||||
echo Ready! Now try:
|
||||
echo 1. Create the repository on Gitea first (in IntelSight organization)
|
||||
echo 2. Then run: git push -u origin master:main
|
||||
echo.
|
||||
pause
|
||||
21
scripts/quick_fix_website.bat
Normale Datei
21
scripts/quick_fix_website.bat
Normale Datei
@ -0,0 +1,21 @@
|
||||
@echo off
|
||||
echo Quick fix for website-main repository...
|
||||
echo.
|
||||
|
||||
cd /d "C:\Users\hendr\Desktop\IntelSight\website-main"
|
||||
|
||||
echo Current remote:
|
||||
git remote -v
|
||||
echo.
|
||||
|
||||
echo Fixing remote URL with correct token...
|
||||
git remote set-url origin https://IntelSight_Admin:3b4a6ba1ade3f34640f3c85d2333b4a3a0627471@gitea-undso.intelsight.de/IntelSight/website-main.git
|
||||
|
||||
echo.
|
||||
echo New remote:
|
||||
git remote -v
|
||||
echo.
|
||||
|
||||
echo Done! Now you can push normally.
|
||||
echo.
|
||||
pause
|
||||
30
scripts/website_gitignore_template.txt
Normale Datei
30
scripts/website_gitignore_template.txt
Normale Datei
@ -0,0 +1,30 @@
|
||||
# Large files
|
||||
*.zip
|
||||
*.rar
|
||||
*.7z
|
||||
*.tar
|
||||
*.gz
|
||||
|
||||
# Media files over 100MB
|
||||
*.mp4
|
||||
*.avi
|
||||
*.mov
|
||||
*.mkv
|
||||
*.wmv
|
||||
|
||||
# Database dumps
|
||||
*.sql
|
||||
*.dump
|
||||
|
||||
# Backup files
|
||||
*.bak
|
||||
backup/
|
||||
backups/
|
||||
|
||||
# Build artifacts
|
||||
dist/
|
||||
build/
|
||||
node_modules/
|
||||
|
||||
# Add specific large files here
|
||||
# largefile.ext
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren