This guide explains how to pull (download) and push (upload) changes to a GitHub repository using Git Bash or any terminal with Git installed.
git clone https://github.com/your-username/your-repo.git
cd your-repogit pull origin maingit add .git commit -m "Describe what you changed"git push origin mainAgain, replace
mainwith your actual branch name.
To ensure Git is using your correct identity:
git config --global user.name
git config --global user.emailTo set them:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"You have now pulled and pushed changes using Git. Happy coding!