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