Git 致命的: プロトコル 'https' はサポートされていません 質問する

Git 致命的: プロトコル 'https' はサポートされていません 質問する

私は Github のフォーク ガイドを確認しています:https://guides.github.com/activities/forking/そして、リポジトリを自分のコンピューターにクローンしようとしています。しかし、次のコマンドを実行すると、

$ git clone https://github.com/./Spoon-Knife.git
Cloning into 'Spoon-Knife'...
fatal: protocol 'https' is not supported

SSHでも試しました:

$ git clone [email protected]:./Spoon-Knife.git
Cloning into 'Spoon-Knife'...
Warning: Permanently added the RSA host key for IP address '.' to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

コンピューターの構成設定を変更する必要があるのでしょうか、それとも GitHub の問題でしょうか?

編集: ユーザー名と IP アドレスを「.」に置き換えました。

ベストアンサー1

問題はおそらくこれです:

  • CTRL以前、 +を使用して貼り付けようとしましたVが、うまくいきませんでした。
  • そこで、クラシックで貼り付けましたRight Click
  • 残念なことに、ターミナルCTRL+を入力すると、入力後にのみ表示される隠し文字(少なくとも私のマシンではそのようにエンコードされています) が追加されます(git bash で試してみてください)。V ^?backspace

したがって、リンクは^?https://... 無効になります。

おすすめ記事