Documentation request for personal access tokens
I created a new token on github with all permissions required, but I was not able to tell hub to actually use that token. The documentation about the tokens is generally really sparse and not generally helpful. Then I decided to configure my github tokens, as that would the the preferred way for me anyway. But I found absolutely no help on this topic.
- There is no help on where on gihub these tokens need to be created.
- There is no help on the recommended settings for the tokens.
- It doesn't tell where and how to store my github token.
- All I found was how to use a token through an environment variable.
Do I have to put my token in my bashrc? Is that the recommended way to store a personal access token?
Sorry this is not a bug report. It is just a report on my frustration trying to get started with hub. Please add more documentation regarding these tokens, they are literally the key to make this tool usable and therefore should be documented as good as possible.
@krux02 Did you ever figure out how to do this?
I figured it out.
nano ~/.config/hub
Then update your token there.
From https://github.com/github/hub/issues/2655
~/.config/hub
github.com:
- user: mislav
oauth_token: PASTE_YOUR_TOKEN_HERE
protocol: https