dubswayAgenticV2 / clean-for-deployment.bat
peace2024's picture
update ignore
08d7c19
raw
history blame
1.46 kB
@echo off
echo 🧹 Cleaning repository for Hugging Face deployment...
echo.
echo πŸ“‹ Removing binary files and vector stores...
REM Remove vector store directory
if exist "vector_store" (
echo Removing vector_store directory...
rmdir /s /q "vector_store"
echo βœ… vector_store removed
) else (
echo ℹ️ vector_store directory not found
)
REM Remove database files
for %%f in (*.db *.sqlite *.sqlite3) do (
if exist "%%f" (
echo Removing %%f...
del "%%f"
echo βœ… %%f removed
)
)
REM Remove FAISS files
for %%f in (*.faiss *.index *.bin) do (
if exist "%%f" (
echo Removing %%f...
del "%%f"
echo βœ… %%f removed
)
)
REM Remove log files
for %%f in (*.log) do (
if exist "%%f" (
echo Removing %%f...
del "%%f"
echo βœ… %%f removed
)
)
echo.
echo πŸ”„ Updating git...
REM Remove tracked files that should be ignored
git rm -r --cached vector_store/ 2>nul
git rm --cached *.db 2>nul
git rm --cached *.sqlite 2>nul
git rm --cached *.sqlite3 2>nul
git rm --cached *.faiss 2>nul
git rm --cached *.log 2>nul
echo.
echo πŸ“ Committing changes...
git add .
git commit -m "Clean repository for Hugging Face deployment - remove binary files"
echo.
echo βœ… Repository cleaned! You can now push to Hugging Face:
echo.
echo git push space develop
echo.
echo Or create a new branch:
echo git checkout -b main
echo git push space main
echo.
pause