GitHub
For a New Project
Create a repository on GitHub:
Go to GitHub and click "New repository"
Give it a name, choose public/private
Don't initialize with README if you already have code locally
In your project folder on your computer:
bash
git init # Initialize git in your folder git add . # Add all files to staging git commit -m "Initial commit" # Create your first commit git branch -M main # Rename branch to main git remote add origin https://github.com/yourusername/yourrepository.git git push -u origin main # Push code to GitHub