LoginSignup
15
16

More than 5 years have passed since last update.

gitBREAKのprivateリポジトリをcloneする方法

Posted at

gitBREAKのprivateリポジトリをcloneする方法

普段からgitを使ってる人は気づくのかもしれないけど、これは気づかなかった。

gitBREAKでPrivateなリポジトリを作成して、URL欄のURLをそのままcloneしてもclone出来なかった。

$ git clone https://git.codebreak.com/<ユーザー名>/<リポジトリ名>.git
Initialized empty Git repository in <なんかのパス>
error: The requested URL returned error: 401 Unauthorized while accessing https://git.codebreak.com/<ユーザ名>/<リポジトリ名>.git/info/refs

fatal: HTTP request failed

これの解消方法

$ git clone https://<ユーザ名>@git.codebreak.com/<ユーザ名>/<リポジトリ名>.git

これで解決した。

URL欄に完全に騙された件。

Privateリポジトリの時だけURL欄変更するようにしてくれないかな。

15
16
1

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
15
16