LoginSignup
4
3

More than 1 year has passed since last update.

【git】git cloneができないときの解決方法

Posted at

はじめに

ターミナルで「git clone」をしたときになぜかうまくいきませんでした。
この問題にはどこかでまた遭遇しそうなので記録として残しておきます。

問題

以下の画像のようにgitHubからHTTPのURLを取得して、ターミナルでgit clone https://github.com/△△△△/○○○○.gitと叩くとクローンできるはずができない。
スクリーンショット 2023-03-30 13.19.44.png

解決方法

github.comの前にアカウント名+@を追加してコマンドを叩いたら解決しました!

git clone https://<アカウント名>@github.com/△△△△/○○○○.git

※実際に叩くときは<>は消してね。

おわりに

短いですが以上です!
おーわーり。

4
3
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
4
3