Here are the step to connect to a new remote respiratory and make your first commit.
Use a terminal to go to the root of your project. For example:
$ cd C:/Users/user/my_project
Then execute the following git commands below:
- git init
- git add README.md
- git commit -m "first commit"
- git branch -M main
- git remote add origin https://github.com/yourrepo.git
- git push -u origin main
In the second step you can do git add . to include all the files and folders from your local project.