Skip to content

Instantly share code, notes, and snippets.

@angelhvargas
Created December 13, 2020 13:51
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 angelhvargas/643ca8e16adc83ab758d9c4700447c9e to your computer and use it in GitHub Desktop.
Save angelhvargas/643ca8e16adc83ab758d9c4700447c9e to your computer and use it in GitHub Desktop.
Fix to make go get work from private repos/orgs

Config target:

git config --global url."git@github.com:".insteadOf "https://github.com/"
Removing the passphrase from my ./ssh/id_rsa key which was used for authenticating the connection to the repository. This can be done by entering an empty password when prompted as a response to:

ssh-keygen -p

Then add ~/.ssh/config

Host github.com
    HostName github.com
    User angelhvargas
    IdentityFile ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment