push a code to new github repository code example
Example 1: how to push a file to github
git remote add origin 'your_url_name'
git push -u origin master
Example 2: pushing to github
git add .
git commit -m "First commit"
git push origin master