git push existing project to new repository code example
Example 1: pushing to github
git add .
git commit -m "First commit"
git push origin master
Example 2: git push existing code to new repository
git remote add origin <remote repository URL>