Help us understand the problem. What is going on with this article?

プライベートリポジトリをgo getする方法。

結論

①トークンを発行してね。
参考サイト
https://qiita.com/kz800/items/497ec70bff3e555dacd0

②トークンを.gitconfigに書き込んでね

$ nano ~/.gitconfig
~/.gitconfig
[url "https://xxxxxxxxxxxxxxx:x-oauth-basic@github.com/"]
insteadOf = https://github.com/

以下エラーが発生した場合トークンが間違ってるかも

# cd .; git clone -- https://github.com/CreatorsLab/test_repo /home/pi/go/src/github.com/CreatorsLab/test_repo
Cloning into '/home/pi/go/src/github.com/CreatorsLab/test_repo'...
remote: Invalid username or password.
fatal: Authentication failed for 'https://c61adxxxxxxxxxxxxxxxxxxxxxxxx:x-oauth-basic@github.com/CreatorsLab/test_repo/'
package github.com/CreatorsLab/test_repo: exit status 128

参考サイト

https://github.com/k8sp/sextant/issues/29

kino_tomoyuki
web developer
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away