0
0

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 でプライベートリポジトリをダウンロードできない時

Posted at

公開リポジトリはダウンロード出来るけど・・・

go get github.com/motemen/gore

プライベートリポジトリはダウンロードできない!

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

結論 c61aいらないわ

以下URLには
https://github.com/k8sp/sextant/issues/29

git config --global url."https://c61axxxxxxxxxxxxxxx:x-oauth-basic@github.com/".insteadOf "https://github.com/"

こうしろって書いてあるけど、これだと動かなかった。
でも、

git config --global url."https://xxxxxxxxxxxxxxx:x-oauth-basic@github.com/".insteadOf "https://github.com/"しろ

こうしたら動いた

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?