Uploading a Project to GitHub
To upload (push) your project to GitHub:
- Create a new repository on GitHub.
- On your computer, open a terminal in your project folder.
- Initialize Git:
git init - Add your files:
git add . - Commit your changes:
git commit -m "Initial commit" - Link your repo:
git remote add origin https://github.com/username/repository.git - Push to GitHub:
git push -u origin main
Replace the URL with your repository's URL.