git upload to github command code example
Example 1: initialize a repo and push to github
git init
git add -A
git commit -m 'Added my project'
git remote add origin git@github.com:sammy/my-new-project.git
git push -u -f origin master
Example 2: pushing to github
git add .
git commit -m "First commit"
git push origin master
Example 3: how to upload on github with command
git remote add origin https://github.com/yourusername/your-repo-name.git
Example 4: how to add a repository to github
git & github