# Sets the new remote you'll need to create this repo on github first git remote add origin https://github.com/yourusername/yourprojectname git branch -M main # Creates a branch git push -u origin main # pushes the files to the repo