GitHub
After a commit, go to GitHub and create a repo.(repository)
Follow the GitHub provided prompts.
Push your existing local repo from your computer terminal.
- git remote add origin https://github.com/githubusername/githubrepo.git
- git branch -M main
- git push -u origin main
- git remote add origin https://github.com/githubusername/githubrepo.git
- Add a remote repository (GitHub) to you 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 pf the branch to main. The -M is for move/rename.
- git push -u origin main
- Pushes your local main branch to the remote repository named origin