Generate the access token on github https://github.com/settings/tokens (repo
level is enough to get push and pull working)
Then create a .netrc file in your home dir like so:
machine github.com
login your_github_username
password xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Replace password with the token. Ta-da! Boom! ps. Windows doesn't like the filename .netrc so you have to call it _netrc