Last active
May 6, 2020 09:55
-
-
Save ptflp/53ec5fd885afcdb3689767e8a51eabe3 to your computer and use it in GitHub Desktop.
Golang private repository go.mod go get
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git config \ | |
--global \ | |
url."[email protected]".insteadOf \ | |
"https://github.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git config \ | |
--global \ | |
url."https://${user}:${personal_access_token}@github.com".insteadOf \ | |
"https://github.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment