GitHub

GitHub

After commit, go to GitHub website and create a new repository. Follow the GitHub provided prompts. push the existing repository 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. The -M is for move/rename.
git branch -u main
Pushes your local main branch to the remote repository named origin.