git can automatically register scripts that are in your $PATH that begin with git-. This will set up and download the included scripts.
Note: you'll have to replace [gist_id with the ID in the URL for now. I haven't updated this yet with the published URL.
$ mkdir -p ~/bin
$ export PATH=$HOME/bin:$PATH
$ curl -fLo ~/bin/git-github-create-pat https://gist.github.com/thecjharries/[gist_id]/raw/git-github-create-pat.sh
$ curl -fLo ~/bin/git-github-init-remote https://gist.github.com/thecjharries/[gist_id]/raw/git-github-init-remote.sh
$ git help -a | grep -E 'github-(create-pat|init-remote)' && echo 'Installation worked' || echo 'Installation failed'
Make sure to edit the files with the values for your situation. You won't get far trying to authenicate as me.
First run git-github-create-pat like so:
$ git github-create-pat
This adds a hidden config containing curl authenication information in the form of user:token.
After that's done, you can run git-github-init-remote, which needs the personal access token generated similarly to the above:
$ cd <project directory>
$ git init
$ git github-init-remote <project name>
If you don't specify a project name, the script uses the current directory name, i.e. the repo will be named basename <project directory>.
Many are planned. Stay tuned.