Initial website commit with all files

This commit is contained in:
Shaurya705
2025-05-29 11:33:32 +05:30
parent 971c29bd9d
commit 24d6c86af7
5 changed files with 254 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
@echo off
echo GitHub Website Uploader
echo =======================
REM Check if Git is available
git --version
if %errorlevel% neq 0 (
echo Git is not installed or not in PATH. Please install Git first.
pause
exit /b
)
REM Set GitHub details
set GITHUB_REPO=shaurya05745/website
REM Make sure Git is initialized
if not exist .git (
echo Initializing git repository...
git init
) else (
echo Git repository already initialized.
)
REM Add all files
echo Adding all files...
git add .
REM Commit changes
echo Committing changes...
git commit -m "Upload entire website"
REM Configure remote
echo Setting up remote repository URL...
git remote set-url origin https://github.com/%GITHUB_REPO%.git
if %errorlevel% neq 0 (
git remote add origin https://github.com/%GITHUB_REPO%.git
)
REM Push to GitHub
echo Pushing to GitHub... This may prompt for your GitHub credentials.
echo For password, use a Personal Access Token (not your GitHub password).
echo Visit https://github.com/settings/tokens to create a token with 'repo' scope.
git push -u origin master
pause