how to upload files to github using git bash code example
Example 1: How to upload a files to a repository on github using gitbash
git init
git add .
git commit -m "message for the commit"
git remote add origin https://url-of-github-repo
git push origin master or git push -f origin master
Example 2: create github repo with bash
winpty curl -H 'Authorization: token [GENERATED_TOKEN]' https://api.github.com/user/repos -d '{"name":"[REPO_NAME_YOU_WANT]"}'
https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line