LoginSignup
1
2

More than 5 years have passed since last update.

プライベートリポジトリからのgit cloneで403

Posted at

事象

何も考えずにgit cloneしてみた

git clone https://github.com/username/private-repository.git

そしたら403が返ってきた

error: The requested URL returned error: 403 Forbidden while accessing https://github.com/usrname/private-repository.git/info/refs

解決法

これでプライベートリポジトリからクローンできた

git clone https://username@github.com/username/private-repository.git

参考

1
2
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
1
2