add git repository to existing project command line 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: git push existing code to new repository
git remote add origin <remote repository URL>