setup_github.bat
@echo off
echo ============================================================
echo GitHub Repository Setup Script
echo ============================================================
echo.
echo This script will help you push your code to GitHub.
echo.
echo Prerequisites:
echo 1. You have a GitHub account
echo 2. You have created a repository on GitHub
echo 3. You have your GitHub username ready
echo.
echo ============================================================
echo.
set /p username="Enter your GitHub username: "
set repo_url=https://github.com/%username%/government-intervention-ml.git
echo.
echo Repository URL will be: %repo_url%
echo.
set /p confirm="Is this correct? (y/n): "
if /i "%confirm%" NEQ "y" (
echo Cancelled. Please edit this script with correct username.
pause
exit /b
)
echo.
echo Adding remote repository...
git remote add origin %repo_url%
echo.
echo Renaming branch to main...
git branch -M main
echo.
echo Pushing to GitHub...
echo Note: You will be asked for your GitHub credentials.
echo Username: Your GitHub username
echo Password: Use Personal Access Token (not your password)
echo Create token at: https://github.com/settings/tokens
echo.
git push -u origin main
if %ERRORLEVEL% EQU 0 (
echo.
echo ============================================================
echo Success! Your code has been pushed to GitHub.
echo Repository: %repo_url%
echo ============================================================
echo.
echo Next steps:
echo 1. Visit your repository on GitHub
echo 2. Check that all files are uploaded
echo 3. Create a release (v1.0.0)
echo.
) else (
echo.
echo ============================================================
echo Push failed. Please check:
echo 1. Repository exists on GitHub
echo 2. Your credentials are correct
echo 3. You have permission to push
echo ============================================================
)
pause