push local code to an 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 code to new repository
git remote add origin <remote repository URL>