Quick note to self about how to connect a gitbook to a github.com repository. I'm using the GitBook Editor but this will also work for a terminal.
Essentially you need to create a personal access token (found in the Developer section of your profile settings) and grant the token the ability to connect to and control repositories. This then gets prefixed to your https:// origin in the manner username:token@.
See below screenshots:
This could also be achieved via terminal
git remote add origin https://<username>:<token>@github.com/darth-veitcher/<repository>.git
git push -u origin master


