hub icon indicating copy to clipboard operation
hub copied to clipboard

Documentation request for personal access tokens

Open krux02 opened this issue 4 years ago • 3 comments

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 avatar Mar 10 '21 17:03 krux02

@krux02 Did you ever figure out how to do this?

jamonholmgren avatar May 25 '21 01:05 jamonholmgren

I figured it out.

nano ~/.config/hub

Then update your token there.

jamonholmgren avatar May 25 '21 01:05 jamonholmgren

From https://github.com/github/hub/issues/2655

~/.config/hub

github.com:
 - user: mislav
   oauth_token: PASTE_YOUR_TOKEN_HERE
   protocol: https

ssk101 avatar May 25 '21 09:05 ssk101