Skip to content

Instantly share code, notes, and snippets.

@joaquinicolas
Created February 10, 2022 21:51
Show Gist options
  • Save joaquinicolas/34279884ee54de534a48f9514f02bbc0 to your computer and use it in GitHub Desktop.
Save joaquinicolas/34279884ee54de534a48f9514f02bbc0 to your computer and use it in GitHub Desktop.
Private go modules
git config --global url."[email protected]:".insteadOf "https://github.com/"
cat ~/.gitconfig
[url "[email protected]:"]
	insteadOf = https://github.com/
go get github.com/private/repo

Create Access token

This depends on the host.

Edit/Create ~/.netrc

vim ~/.netrc
machine gitlab.com login [email protected]  password jonoe-yoyoyoyoyo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment