Add current project to an existing GitHub repository
- Create a GitHub repo (ignore this step if you already have one or created one).
- On your computer open terminal and go to the project root folder.
- run the following:
- git init
- git add .
- git commit -m “initialize”
- git remote add origin <remote repo URL>
- # optional step:
- git remote set-url origin <remote repo URL>
- git push origin main