add project to repository git code example
Example 1: git add existing project to repository
git remote add origin <repository url>
git branch -M main
git push -u origin main
Example 2: how to upload existing project to github
git remote add origin remote repository URL
git remote -v
git push -f origin master