sunfmin / notebook

My Note Book
2 stars 0 forks source link

让go get ./...可以下载私有仓库 #15

Open sunfmin opened 7 years ago

sunfmin commented 7 years ago
git config --global url."git@github.com:".insteadOf "https://github.com/"
sunfmin commented 6 years ago

Create a GitHub token in your personal settings and do this:

    git config --global url."https://$GITHUB_TOKEN:x-oauth-basic@github.com/".insteadOf "https://github.com/" && \
    sed -i 's/git@github.com:/https:\/\/github.com\//' .git/config && \