Git fatal: protocol 'https' is not supported












1















I am going through Github's forking guide: https://guides.github.com/activities/forking/
and I am trying to clone the repository onto my computer. However, running the command:



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


Also tried with 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.


Do I need to change some configuration setting on my computer or is this a problem with GitHub?



Edit: I have replaced my username and IP address with "."










share|improve this question




















  • 1





    Can you check if there are any strange special characters in the copied text. Maybe try typing the whole URL instead of copying it from github. And maybe also check if github.com really resolves to github or if there is something redirecting it to another server.

    – lw1.at
    Dec 31 '18 at 15:05






  • 1





    Or maybe some other software on your computer corrupted the intstalled git (see stackoverflow.com/questions/15553161/…). In that case reinstalling it might fix the issue.

    – lw1.at
    Dec 31 '18 at 15:06











  • Thanks for some reason I rebooted the command line and now it works...

    – hlinee
    Dec 31 '18 at 17:04
















1















I am going through Github's forking guide: https://guides.github.com/activities/forking/
and I am trying to clone the repository onto my computer. However, running the command:



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


Also tried with 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.


Do I need to change some configuration setting on my computer or is this a problem with GitHub?



Edit: I have replaced my username and IP address with "."










share|improve this question




















  • 1





    Can you check if there are any strange special characters in the copied text. Maybe try typing the whole URL instead of copying it from github. And maybe also check if github.com really resolves to github or if there is something redirecting it to another server.

    – lw1.at
    Dec 31 '18 at 15:05






  • 1





    Or maybe some other software on your computer corrupted the intstalled git (see stackoverflow.com/questions/15553161/…). In that case reinstalling it might fix the issue.

    – lw1.at
    Dec 31 '18 at 15:06











  • Thanks for some reason I rebooted the command line and now it works...

    – hlinee
    Dec 31 '18 at 17:04














1












1








1








I am going through Github's forking guide: https://guides.github.com/activities/forking/
and I am trying to clone the repository onto my computer. However, running the command:



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


Also tried with 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.


Do I need to change some configuration setting on my computer or is this a problem with GitHub?



Edit: I have replaced my username and IP address with "."










share|improve this question
















I am going through Github's forking guide: https://guides.github.com/activities/forking/
and I am trying to clone the repository onto my computer. However, running the command:



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


Also tried with 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.


Do I need to change some configuration setting on my computer or is this a problem with GitHub?



Edit: I have replaced my username and IP address with "."







git






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 31 '18 at 14:45







hlinee

















asked Dec 31 '18 at 14:40









hlineehlinee

1389




1389








  • 1





    Can you check if there are any strange special characters in the copied text. Maybe try typing the whole URL instead of copying it from github. And maybe also check if github.com really resolves to github or if there is something redirecting it to another server.

    – lw1.at
    Dec 31 '18 at 15:05






  • 1





    Or maybe some other software on your computer corrupted the intstalled git (see stackoverflow.com/questions/15553161/…). In that case reinstalling it might fix the issue.

    – lw1.at
    Dec 31 '18 at 15:06











  • Thanks for some reason I rebooted the command line and now it works...

    – hlinee
    Dec 31 '18 at 17:04














  • 1





    Can you check if there are any strange special characters in the copied text. Maybe try typing the whole URL instead of copying it from github. And maybe also check if github.com really resolves to github or if there is something redirecting it to another server.

    – lw1.at
    Dec 31 '18 at 15:05






  • 1





    Or maybe some other software on your computer corrupted the intstalled git (see stackoverflow.com/questions/15553161/…). In that case reinstalling it might fix the issue.

    – lw1.at
    Dec 31 '18 at 15:06











  • Thanks for some reason I rebooted the command line and now it works...

    – hlinee
    Dec 31 '18 at 17:04








1




1





Can you check if there are any strange special characters in the copied text. Maybe try typing the whole URL instead of copying it from github. And maybe also check if github.com really resolves to github or if there is something redirecting it to another server.

– lw1.at
Dec 31 '18 at 15:05





Can you check if there are any strange special characters in the copied text. Maybe try typing the whole URL instead of copying it from github. And maybe also check if github.com really resolves to github or if there is something redirecting it to another server.

– lw1.at
Dec 31 '18 at 15:05




1




1





Or maybe some other software on your computer corrupted the intstalled git (see stackoverflow.com/questions/15553161/…). In that case reinstalling it might fix the issue.

– lw1.at
Dec 31 '18 at 15:06





Or maybe some other software on your computer corrupted the intstalled git (see stackoverflow.com/questions/15553161/…). In that case reinstalling it might fix the issue.

– lw1.at
Dec 31 '18 at 15:06













Thanks for some reason I rebooted the command line and now it works...

– hlinee
Dec 31 '18 at 17:04





Thanks for some reason I rebooted the command line and now it works...

– hlinee
Dec 31 '18 at 17:04












2 Answers
2






active

oldest

votes


















3














A ? before the protocol (https) is not support. You want this:



git clone git@github.com:octocat/Spoon-Knife.git



or this:



git clone https://github.com/octocat/Spoon-Knife.git



Selecting the location to clone



Edit: this particular users problem was solved by starting a new terminal session.






share|improve this answer


























  • Sorry I am not sure why the "?" appeared when I copied from the command line. I have edited my post.

    – hlinee
    Dec 31 '18 at 14:43











  • Try either of these commands for me, I don't know why you have a . after the github.com/ but that's not right.

    – TomDunning
    Dec 31 '18 at 14:46













  • I tried with SSH as well and it didn't work. There is a "." in place of where my username is.

    – hlinee
    Dec 31 '18 at 14:47











  • Have you forked the project then? Did you make it public or private? If it's public, you should be able to copy the url from the box as shown above. If it's private you must have your private key added to your account.

    – TomDunning
    Dec 31 '18 at 14:50











  • Thank you- I restarted the command line and for some reason now it works. I am still very confused why it didn't work to begin with.

    – hlinee
    Dec 31 '18 at 17:04



















0














I encountered the same problem after freshly installing git on Windows 10 and running it for the first time. Restarting the git windows






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53988638%2fgit-fatal-protocol-https-is-not-supported%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    A ? before the protocol (https) is not support. You want this:



    git clone git@github.com:octocat/Spoon-Knife.git



    or this:



    git clone https://github.com/octocat/Spoon-Knife.git



    Selecting the location to clone



    Edit: this particular users problem was solved by starting a new terminal session.






    share|improve this answer


























    • Sorry I am not sure why the "?" appeared when I copied from the command line. I have edited my post.

      – hlinee
      Dec 31 '18 at 14:43











    • Try either of these commands for me, I don't know why you have a . after the github.com/ but that's not right.

      – TomDunning
      Dec 31 '18 at 14:46













    • I tried with SSH as well and it didn't work. There is a "." in place of where my username is.

      – hlinee
      Dec 31 '18 at 14:47











    • Have you forked the project then? Did you make it public or private? If it's public, you should be able to copy the url from the box as shown above. If it's private you must have your private key added to your account.

      – TomDunning
      Dec 31 '18 at 14:50











    • Thank you- I restarted the command line and for some reason now it works. I am still very confused why it didn't work to begin with.

      – hlinee
      Dec 31 '18 at 17:04
















    3














    A ? before the protocol (https) is not support. You want this:



    git clone git@github.com:octocat/Spoon-Knife.git



    or this:



    git clone https://github.com/octocat/Spoon-Knife.git



    Selecting the location to clone



    Edit: this particular users problem was solved by starting a new terminal session.






    share|improve this answer


























    • Sorry I am not sure why the "?" appeared when I copied from the command line. I have edited my post.

      – hlinee
      Dec 31 '18 at 14:43











    • Try either of these commands for me, I don't know why you have a . after the github.com/ but that's not right.

      – TomDunning
      Dec 31 '18 at 14:46













    • I tried with SSH as well and it didn't work. There is a "." in place of where my username is.

      – hlinee
      Dec 31 '18 at 14:47











    • Have you forked the project then? Did you make it public or private? If it's public, you should be able to copy the url from the box as shown above. If it's private you must have your private key added to your account.

      – TomDunning
      Dec 31 '18 at 14:50











    • Thank you- I restarted the command line and for some reason now it works. I am still very confused why it didn't work to begin with.

      – hlinee
      Dec 31 '18 at 17:04














    3












    3








    3







    A ? before the protocol (https) is not support. You want this:



    git clone git@github.com:octocat/Spoon-Knife.git



    or this:



    git clone https://github.com/octocat/Spoon-Knife.git



    Selecting the location to clone



    Edit: this particular users problem was solved by starting a new terminal session.






    share|improve this answer















    A ? before the protocol (https) is not support. You want this:



    git clone git@github.com:octocat/Spoon-Knife.git



    or this:



    git clone https://github.com/octocat/Spoon-Knife.git



    Selecting the location to clone



    Edit: this particular users problem was solved by starting a new terminal session.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jan 1 at 1:01

























    answered Dec 31 '18 at 14:42









    TomDunningTomDunning

    3,61111727




    3,61111727













    • Sorry I am not sure why the "?" appeared when I copied from the command line. I have edited my post.

      – hlinee
      Dec 31 '18 at 14:43











    • Try either of these commands for me, I don't know why you have a . after the github.com/ but that's not right.

      – TomDunning
      Dec 31 '18 at 14:46













    • I tried with SSH as well and it didn't work. There is a "." in place of where my username is.

      – hlinee
      Dec 31 '18 at 14:47











    • Have you forked the project then? Did you make it public or private? If it's public, you should be able to copy the url from the box as shown above. If it's private you must have your private key added to your account.

      – TomDunning
      Dec 31 '18 at 14:50











    • Thank you- I restarted the command line and for some reason now it works. I am still very confused why it didn't work to begin with.

      – hlinee
      Dec 31 '18 at 17:04



















    • Sorry I am not sure why the "?" appeared when I copied from the command line. I have edited my post.

      – hlinee
      Dec 31 '18 at 14:43











    • Try either of these commands for me, I don't know why you have a . after the github.com/ but that's not right.

      – TomDunning
      Dec 31 '18 at 14:46













    • I tried with SSH as well and it didn't work. There is a "." in place of where my username is.

      – hlinee
      Dec 31 '18 at 14:47











    • Have you forked the project then? Did you make it public or private? If it's public, you should be able to copy the url from the box as shown above. If it's private you must have your private key added to your account.

      – TomDunning
      Dec 31 '18 at 14:50











    • Thank you- I restarted the command line and for some reason now it works. I am still very confused why it didn't work to begin with.

      – hlinee
      Dec 31 '18 at 17:04

















    Sorry I am not sure why the "?" appeared when I copied from the command line. I have edited my post.

    – hlinee
    Dec 31 '18 at 14:43





    Sorry I am not sure why the "?" appeared when I copied from the command line. I have edited my post.

    – hlinee
    Dec 31 '18 at 14:43













    Try either of these commands for me, I don't know why you have a . after the github.com/ but that's not right.

    – TomDunning
    Dec 31 '18 at 14:46







    Try either of these commands for me, I don't know why you have a . after the github.com/ but that's not right.

    – TomDunning
    Dec 31 '18 at 14:46















    I tried with SSH as well and it didn't work. There is a "." in place of where my username is.

    – hlinee
    Dec 31 '18 at 14:47





    I tried with SSH as well and it didn't work. There is a "." in place of where my username is.

    – hlinee
    Dec 31 '18 at 14:47













    Have you forked the project then? Did you make it public or private? If it's public, you should be able to copy the url from the box as shown above. If it's private you must have your private key added to your account.

    – TomDunning
    Dec 31 '18 at 14:50





    Have you forked the project then? Did you make it public or private? If it's public, you should be able to copy the url from the box as shown above. If it's private you must have your private key added to your account.

    – TomDunning
    Dec 31 '18 at 14:50













    Thank you- I restarted the command line and for some reason now it works. I am still very confused why it didn't work to begin with.

    – hlinee
    Dec 31 '18 at 17:04





    Thank you- I restarted the command line and for some reason now it works. I am still very confused why it didn't work to begin with.

    – hlinee
    Dec 31 '18 at 17:04













    0














    I encountered the same problem after freshly installing git on Windows 10 and running it for the first time. Restarting the git windows






    share|improve this answer




























      0














      I encountered the same problem after freshly installing git on Windows 10 and running it for the first time. Restarting the git windows






      share|improve this answer


























        0












        0








        0







        I encountered the same problem after freshly installing git on Windows 10 and running it for the first time. Restarting the git windows






        share|improve this answer













        I encountered the same problem after freshly installing git on Windows 10 and running it for the first time. Restarting the git windows







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 20 at 14:08









        mondaymonday

        13




        13






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53988638%2fgit-fatal-protocol-https-is-not-supported%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Mossoró

            Error while reading .h5 file using the rhdf5 package in R

            Pushsharp Apns notification error: 'InvalidToken'