Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

go get でプライベートリポジトリをダウンロードできない時

More than 1 year has passed since last update.

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

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/"しろ

こうしたら動いた

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