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 git@github.com:./Spoon-Knife.git
Cloning into 'Spoon-Knife'...
Warning: Permanently added the RSA host key for IP address '.' to the list of known hosts.
git@github.com: 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 주소를 "."로 바꿨습니다.
문제는 아마도 이것입니다.
다음을 사용하여 붙여 넣으려고했습니다.
- CTRL + V
전에는 작동하지 않았으므로 계속해서 클래식
- Right Click -붙여 넣기 **.
슬프게도 터미널에CTRL + V 를 입력 할 때마다 추가됩니다.
- 숨겨진 ^?
(적어도 내 컴퓨터에서는 그렇게 인코딩되었습니다).
너 뒤에 만 나오는 캐릭터
- backspace
(git bash에서 시도해보십시오).
그래서 당신의 링크는 ^?https://...
유효하지 않습니다.
편집 : 이 특정 사용자 문제는 새 터미널 세션을 시작하여 해결되었습니다.
A ?
before the protocol (https)은 지원되지 않습니다. 당신은 이것을 원합니다 :
git clone git@github.com:octocat/Spoon-Knife.git
아니면 이거:
git clone https://github.com/octocat/Spoon-Knife.git
간단한 대답은 https를 제거하는 것입니다.
귀하의 Repo. : (git clone https : // ........ )
그냥 그렇게 (git clone : // .......)
다시 입력하십시오 (git clone https : // ........ )
100 % 문제 해결 ...
다음과 같이 URL에 큰 따옴표를 사용하면됩니다. git clone "https://yourRepoUrl"
(어떻게 든 시작시 2 개의 따옴표를 사용하고 있음을 알지만 이유를 모릅니다.)
동일한 오류가 발생했습니다 => fatal: protocol ''https' is not supported
(https에서 2 개의 따옴표를 볼 수 있습니다).
뭔가 수상한 일이 벌어지고 있습니다. 아마도 일관성이없는 github 버그 일 것입니다 (A / B 테스트?).
I am on windows10, using firefox. I have just copied a checkout URL and got an extra character. But only the first time. A second time it wasn't there. I had to look at my history file to see it!
here is my history:
git clone --recursive https://github.com/amzeratul/halley-template
git clone --recursive http://github.com/amzeratul/halley-template
git clone --recursive github.com/amzeratul/halley-template
git clone --recursive https://github.com/amzeratul/halley-template
the history command doesn't show the extra char. Just like it wasn't rendered when i was copy-pasting it into the terminal. You can see how i tried to remove the 's' and then the entire protocol? I was only triggered to investigate further when the backspace key moved one less character than i was expecting!
I saved my shell history file onto a machine with an hex editor and:
00000000 xx xx xx xx xx xx xx 0a 67 69 74 20 63 6c 6f 6e |xxxxxxx.git clon|
00000010 65 20 2d 2d 72 65 63 75 72 73 69 76 65 20 c2 96 |e --recursive ..|
00000020 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 |https://github.c|
00000030 6f 6d 2f 61 6d 7a 65 72 61 74 75 6c 2f 68 61 6c |om/amzeratul/hal|
00000040 6c 65 79 2d 74 65 6d 70 6c 61 74 65 0a 67 69 74 |ley-template.git|
00000050 20 2d 2d 68 65 6c 70 0a 67 69 74 20 75 70 64 61 | --help.git upda|
00000060 74 65 2d 67 69 74 2d 66 6f 72 2d 77 69 6e 64 6f |te-git-for-windo|
00000070 77 73 0a 67 69 74 20 63 6c 6f 6e 65 20 2d 2d 72 |ws.git clone --r|
00000080 65 63 75 72 73 69 76 65 20 c2 96 68 74 74 70 73 |ecursive ..https|
00000090 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 61 6d |://github.com/am|
000000a0 7a 65 72 61 74 75 6c 2f 68 61 6c 6c 65 79 2d 74 |zeratul/halley-t|
000000b0 65 6d 70 6c 61 74 65 0a 63 75 72 6c 20 2d 2d 76 |emplate.curl --v|
000000c0 65 72 73 69 6f 6e 0a 63 64 20 63 6f 64 65 0a 67 |ersion.cd code.g|
000000d0 69 74 20 63 6c 6f 6e 65 20 2d 2d 72 65 63 75 72 |it clone --recur|
000000e0 73 69 76 65 20 c2 96 68 74 74 70 73 3a 2f 2f 67 |sive ..https://g|
000000f0 69 74 68 75 62 2e 63 6f 6d 2f 61 6d 7a 65 72 61 |ithub.com/amzera|
00000100 74 75 6c 2f 68 61 6c 6c 65 79 2d 74 65 6d 70 6c |tul/halley-templ|
00000110 61 74 65 0a 67 69 74 20 63 6c 6f 6e 65 20 2d 2d |ate.git clone --|
00000120 72 65 63 75 72 73 69 76 65 20 c2 96 68 74 74 70 |recursive ..http|
00000130 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 61 6d |://github.com/am|
00000140 7a 65 72 61 74 75 6c 2f 68 61 6c 6c 65 79 2d 74 |zeratul/halley-t|
00000150 65 6d 70 6c 61 74 65 0a 67 69 74 20 63 6c 6f 6e |emplate.git clon|
00000160 65 20 2d 2d 72 65 63 75 72 73 69 76 65 20 67 69 |e --recursive gi|
00000170 74 68 75 62 2e 63 6f 6d 2f 61 6d 7a 65 72 61 74 |thub.com/amzerat|
00000180 75 6c 2f 68 61 6c 6c 65 79 2d 74 65 6d 70 6c 61 |ul/halley-templa|
00000190 74 65 0a 67 69 74 20 63 6c 6f 6e 65 20 2d 2d 72 |te.git clone --r|
000001a0 65 63 75 72 73 69 76 65 20 68 74 74 70 73 3a 2f |ecursive https:/|
000001b0 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 61 6d 7a 65 |/github.com/amze|
000001c0 72 61 74 75 6c 2f 68 61 6c 6c 65 79 2d 74 65 6d |ratul/halley-tem|
000001d0 70 6c 61 74 65 0a |plate.|
000001d6
There i a c2 96
char inserted before the url. No idea what that is. Is it not extended ASCII (where it would be –
) and it was hidden from almost every place i pasted while it was on the clipboard. The closest i've found with this hex value would be https://www.fileformat.info/info/unicode/char/c298/index.htm but i didn't see the utf prefix anywhere (again, might have been lost)
This all might be misleading as I lost the page/clipboard and am working exclusively from the saved shell history file, which might very well be missing data from the original bug/malicious injection.
Problem
git clone https://github.com/rojarfast1991/TestGit.git fatal: protocol 'https' is not supported
Solution:
Steps:
(1):- Open the new terminal and clone the git repository
git clone https://github.com/rojarfast1991/TestGit.git
(2) Automatic git login prompt will open and it will be asked you to enter a user credential.
UserName : - xxxxxxx
PassWord : - xxxxxxx
Finally, cloning will start...
git clone https://github.com/rojarfast1991/TestGit.git
Cloning into 'TestGit'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
I encountered the same problem after freshly installing git on Windows 10 and running it for the first time. Restarting the bash window solved the problem.
I had the same problem, all I did was to restart the command line and then navigate to the document folder rather than the user folder using the command '' cd documents '' . That should be all thats needed. Also ensure that the link is correct.
You might be using a windows or linux computer where you have not logged into git hub so the certificate is not verified. From the sytem where you are getting error login to github with the credential then try to use the command it will work . Good Luck
https 대신 http 를 사용 하면 경고 메시지가 표시되고 https로 리디렉션되며 문제없이 복제됩니다.
$ git clone http://github.com/karthikeyana/currency-note-classifier-counter.git
Cloning into 'currency-note-classifier-counter'...
warning: redirecting to https://github.com/karthikeyana/currency-note-classifier-counter.git
remote: Enumerating objects: 533, done.
remote: Total 533 (delta 0), reused 0 (delta 0), pack-reused 533
Receiving objects: 100% (533/533), 608.96 KiB | 29.00 KiB/s, done.
Resolving deltas: 100% (295/295), done.
참조 URL : https://stackoverflow.com/questions/53988638/git-fatal-protocol-https-is-not-supported
'IT Share you' 카테고리의 다른 글
Swift에서 SHA1로 NSString을 해시하는 방법은 무엇입니까? (0) | 2021.01.09 |
---|---|
FormData (HTML5 Object)를 JSON으로 변환하는 방법 (0) | 2021.01.09 |
Rails 콘솔에서 이메일 보내기 (0) | 2021.01.09 |
목록에서 최대 값 가져 오기 (0) | 2021.01.09 |
awk에서 배열의 길이를 어떻게 얻을 수 있습니까? (0) | 2021.01.09 |