add git repository to project 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 add a repository to github
git & github
git remote add origin <repository url>
git branch -M main
git push -u origin main
git & github