How to Upload a Project to GitHub
Follow these steps to upload your project to GitHub:
Create a Repository on GitHub
Go to GitHub and create a new repository.
Copy the repository's clone URL.
Open Git Bash
Use Git Bash as your terminal.
Navigate to Your Project Directory
Use the cd command to go to the folder containing your project:
cd <path-to-folder>
Run the Following Commands
Initialize a Git Repository:
git init
Add the Remote Repository:
git remote add origin
Stage All Files:
git add .
Commit Your Changes:
git commit -m "Initial commit"
Push to GitHub:
git push origin main
Reload Your GitHub Repository Page
Refresh your repository on GitHub to verify the upload.
Your project is now successfully uploaded to GitHub!