Skip to content

Instantly share code, notes, and snippets.

@ajnavarro
Last active November 27, 2016 21:21
Show Gist options
  • Save ajnavarro/feaad5bcbb05df9e507d01ae90b40dc3 to your computer and use it in GitHub Desktop.
Save ajnavarro/feaad5bcbb05df9e507d01ae90b40dc3 to your computer and use it in GitHub Desktop.
How to make 'go get' command work with private repositories

create new github token: github.com/settings/tokens

vim ~/.netrc

    machine github.com login [GIT_USER] password [GIT_TOKEN]
    machine gopkg.in login [GIT_USER] password [GIT_TOKEN]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment