How to use Go with a private GitLab repo

后端 未结 11 1632
时光说笑
时光说笑 2020-12-04 11:11

GitLab is a free, open-source way to host private .git repositories but it does not seem to work with Go. When you create a project it generates a URL of the fo

11条回答
  •  遥遥无期
    2020-12-04 11:59

    You can setup your git credentials and Go will use them:

    1. generate a unique password on your github (somewhere in settings).
    2. git config credential.helper store
    3. echo https://your-github-username:your-generated-password@github.com >> ~/.git-credentials
    4. profit.

提交回复
热议问题