GitHub

GitHub

After a commit, go to Github and create a repo. Follow the Github provided prompts. Push your existing local repo from your computer terminal to Github.

git remote add origin https://github.com/githubusername/githubrepo.git
Add a remote repository GitHub to your local repository. Origin is the name of your remote repository. The web address is where you can find the repository on GitHub.
git branch -M main
Set the name of the branch to main. Them -M is for move/rename.
git push -u origin main
Pushes your local main branch to the remote repository named origin,