how to add a project to git existing 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 push existing repo
cd existing_folder
git init
git remote add origin https://gitlab.com/abc.git
git add .
git commit -m "Initial commit"
git push -u origin master