Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Frastyawan Nym
Frastyawan Nym

Posted on • Edited on

Access your Golang Private Repository

  1. Add your ssh to you git host

  2. Update your GOPRIVATE
    go env -w GOPRIVATE="github.com/<OrgNameHere>/*"

  3. Update your gitconfig. This example for bitbucket:
    git config --global url."git@bitbucket.org:".insteadOf "https://bitbucket.org/"

  4. Add your ssh key with ssh-agent.You have to apply

    eval"$(ssh-agent-s)"> Agent pid 5867ssh-add <private-ssh-key-file-name> // eg. id_rsa(not .pub)> Enter passphrasefor /home/you/.ssh/id_rsa:[] Identity added: /home/you/.ssh/id_rsa(/home/you/.ssh/id_rsa)
  5. Try rungo mod tidy on your project

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software Engineer. Go and NodeJs Developer.
  • Location
    Indonesia
  • Work
    Software Engineer
  • Joined

More fromFrastyawan Nym

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp