@echo off :: ========================================================================= :: ONE-FILE GIT AND GITHUB SETUP SCRIPT :: =========================================================================
echo [1/4] Configuring Global Git Credentials... git config --global --unset user.name git config --global --unset user.email git config --global user.name "Yashm811" git config --global user.email "makwanayash770@gmail.com"
echo. echo [2/4] Verifying Active Configurations: git config --list | findstr "user."
echo. echo [3/4] Initializing Local Git Repository... :: If run from your project folder (e.g., news-website), this initializes it git init
echo. echo [4/4] Connecting Local Repository to Remote GitHub... :: Links your local folder directly to your online repository git remote remove origin 2>nul git remote add origin https://github.com/Yashm811/news-website.git
echo. echo Set default branch to 'main'... git branch -M main
echo. echo ========================================================================= echo SETUP COMPLETE! echo ========================================================================= echo To push changes in the future, just run these 3 commands in your terminal: echo git add . echo git commit -m "your message" echo git push -u origin main echo ========================================================================= pause