@echo off echo =============================================== echo Push LEGO Instructions Manager to Gitea echo =============================================== echo. REM Check if we're in the right directory if not exist "run.py" ( echo Error: run.py not found! echo Please run this script from E:\LIM directory pause exit /b 1 ) echo Step 1: Creating .gitignore... echo __pycache__/ > .gitignore echo *.pyc >> .gitignore echo *.pyo >> .gitignore echo instance/ >> .gitignore echo .env >> .gitignore echo app/static/uploads/ >> .gitignore echo venv/ >> .gitignore echo ENV/ >> .gitignore echo *.db >> .gitignore echo *.sqlite >> .gitignore echo *.log >> .gitignore echo .vscode/ >> .gitignore echo .idea/ >> .gitignore echo. echo Step 2: Initializing Git repository... git init echo. echo Step 3: Adding all files... git add . echo. echo Step 4: Creating initial commit... git commit -m "Initial commit - LEGO Instructions Manager v1.5.0" echo. echo Step 5: Adding Gitea remote... git remote add origin https://gitea.hideawaygaming.com.au/jessikitty/lego-instructions-manager.git echo. echo Step 6: Setting main branch... git branch -M main echo. echo Step 7: Pushing to Gitea... echo. echo You will be prompted for your Gitea credentials: echo Username: jessikitty echo Password: (your Gitea password or access token) echo. git push -u origin main echo. if %ERRORLEVEL% EQU 0 ( echo =============================================== echo Success! Project pushed to Gitea! echo =============================================== echo. echo View at: https://gitea.hideawaygaming.com.au/jessikitty/lego-instructions-manager echo. ) else ( echo =============================================== echo Error pushing to Gitea! echo =============================================== echo. echo Common fixes: echo 1. Check your internet connection echo 2. Verify your Gitea credentials echo 3. Try using an access token instead of password echo. ) pause