Skip to content

Instantly share code, notes, and snippets.

@thiagozs
Created November 16, 2016 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagozs/1b9b44dd80fe9ec3d18a1ec67bf86fc6 to your computer and use it in GitHub Desktop.
Save thiagozs/1b9b44dd80fe9ec3d18a1ec67bf86fc6 to your computer and use it in GitHub Desktop.

An alternative to using git@github.com is to generate a personal access token on your GitHub account, grant it repo access, and then use the following instead:

git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"

That should still work with go get -u, and also works with Docker builds (my particular use case, and how I came across your gist).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment