1

Based on the changes to Github authetication starting yesterday, I am wondering what the "correct" way to push with access tokens is.

On Ubuntu 20 there isn't any macOS keychain like feature for managing tokens (that I know of).

Based on this post, Authenticate with GitHub using a token, many reponses suggest using git remote set-url https://username:$TOKEN@github.com/$ORG/$REPO, but doing this seems to store the token's value in plain text in .git/.

What then are the best practices for storing access tokens locally? Environment variables?

[Note by torek before closing: in this case the solution was this one.]

torek
  • 448,244
  • 59
  • 642
  • 775
Michael
  • 11
  • 2

0 Answers0