37 Zeilen
1.1 KiB
Batchfile
37 Zeilen
1.1 KiB
Batchfile
@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 |