add existing files to git repository code example
Example 1: git push current project to master
git init
git add .
git commit -m 'First commit'
git remote add origin <remote repository URL>
git push origin master
Example 2: git add existing project to repository
git remote add origin <repository url>
git branch -M main
git push -u origin main