5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

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

Last updated at Posted at 2020-02-26

#結論
①トークンを発行してね。
参考サイト
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

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?