Phase 3.1: Enhanced Chore Logging and Reporting System
This commit is contained in:
95
SETUP_GIT_AND_PUSH.bat
Normal file
95
SETUP_GIT_AND_PUSH.bat
Normal file
@@ -0,0 +1,95 @@
|
||||
@echo off
|
||||
echo ================================================
|
||||
echo Phase 3.1: Setup Git and Push to Gitea
|
||||
echo ================================================
|
||||
echo.
|
||||
echo IMPORTANT: This will initialize git in this directory
|
||||
echo and push all Phase 3.1 files to Gitea.
|
||||
echo.
|
||||
echo Repository: https://gitea.hideawaygaming.com.au/jessikitty/family-hub
|
||||
echo.
|
||||
pause
|
||||
|
||||
cd /d D:\Hosted\familyhub
|
||||
|
||||
echo.
|
||||
echo [1/7] Initializing Git repository...
|
||||
git init
|
||||
if errorlevel 1 (
|
||||
echo ERROR: Failed to initialize git
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [2/7] Configuring Git user...
|
||||
git config user.name "Jess"
|
||||
git config user.email "jess.rogerson.29@outlook.com"
|
||||
|
||||
echo.
|
||||
echo [3/7] Adding Gitea remote...
|
||||
git remote add origin https://gitea.hideawaygaming.com.au/jessikitty/family-hub.git 2>nul
|
||||
if errorlevel 1 (
|
||||
echo Remote already exists, updating URL...
|
||||
git remote set-url origin https://gitea.hideawaygaming.com.au/jessikitty/family-hub.git
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [4/7] Adding all files to git...
|
||||
git add .
|
||||
|
||||
echo.
|
||||
echo [5/7] Creating commit...
|
||||
git commit -m "Phase 3.1: Enhanced Chore Logging and Reporting System"
|
||||
|
||||
echo.
|
||||
echo [6/7] Setting main branch...
|
||||
git branch -M main
|
||||
|
||||
echo.
|
||||
echo [7/7] Pushing to Gitea...
|
||||
echo.
|
||||
echo NOTE: You may be prompted for your Gitea credentials.
|
||||
echo Username: jessikitty
|
||||
echo Password: [your Gitea password or access token]
|
||||
echo.
|
||||
|
||||
git push -u origin main
|
||||
|
||||
if errorlevel 1 (
|
||||
echo.
|
||||
echo ================================================
|
||||
echo WARNING: Push failed!
|
||||
echo ================================================
|
||||
echo.
|
||||
echo This might happen if:
|
||||
echo 1. The remote repository already has commits
|
||||
echo 2. Authentication failed
|
||||
echo.
|
||||
echo To force push (CAUTION - overwrites remote):
|
||||
echo git push -u origin main --force
|
||||
echo.
|
||||
echo To pull first and then push:
|
||||
echo git pull origin main --allow-unrelated-histories
|
||||
echo git push -u origin main
|
||||
echo.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ================================================
|
||||
echo SUCCESS! Repository pushed to Gitea!
|
||||
echo ================================================
|
||||
echo.
|
||||
echo View at: https://gitea.hideawaygaming.com.au/jessikitty/family-hub
|
||||
echo.
|
||||
echo Next Steps:
|
||||
echo 1. Visit the repository URL above
|
||||
echo 2. Verify all files are present
|
||||
echo 3. Choose your next enhancement!
|
||||
echo.
|
||||
echo See PHASE_3_1_ENHANCEMENTS_ROADMAP.md for enhancement options
|
||||
echo.
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user