uploading a new project to github code example
Example 1: git push existing code to new repository
git remote add origin <remote repository URL>
Example 2: how to upload existing project to github
git remote add origin remote repository URL
git remote -v
git push -f origin master
Example 3: how to upload on github with command
git remote add origin https://github.com/yourusername/your-repo-name.git