git remote add origin https://github.com/username/projectname.git
#A new repo should be created on GitHub and the url used in the initial upload.
git push -u origin master
#Subsequent command used to upload project. If name of master branch han been
#changed, use that name.
git init -b main