git init git commit -m "first commit" git branch -M main git remote add origin https://github.com/{your username}/{repoName}.git git push -u origin main