git: fatal: I don't handle protocol '​​http'

前端 未结 20 2195
遇见更好的自我
遇见更好的自我 2020-12-02 04:42

I copy and pasted an git clone command from a web page: https://fedorahosted.org/ibus-typing-booster/

I got this:

user@host> git clone ​​http://gi         


        
相关标签:
20条回答
  • 2020-12-02 05:17

    Well looks like if you copy paste the repository link you end up with this issue.

    What I have noticed it this

    1. If you use the copy button on GitHub and then paste the URL in GitBash(Windows) it throws this error
    2. If you select the link and then paste then it works, or you could also just type the URL that works as well.

    So I think it might be an issue with the GitHub copy button

    0 讨论(0)
  • 2020-12-02 05:18

    You can also use a text editor:

    • Paste the URL in the text editor
    • Copy the URL that was just pasted from the text editor
    • Paste it in the command line
    0 讨论(0)
  • 2020-12-02 05:18

    clonning below :

    git clone https://github.com/zendframework/ZendSkeletonApplication.git
    

    gives error:

    Cloning into 'ZendSkeletonApplication'...
    fatal: I don't handle protocol 'https'
    

    Modified it to:

    git clone https://github.com/zendframework/ZendSkeletonApplication
    

    works perfectly or you can just git clone the url. I am using os windows 10 and gitbash.

    0 讨论(0)
  • 2020-12-02 05:19

    I simply added 5 "SPACE"s between clone and the url:

      git clone     ​https://<PATH>/<TO>/<GIT_REPO>.git
    

    and it works!

    0 讨论(0)
  • 2020-12-02 05:19

    Please Check URL you have pasted and It takes additional h after clone.

    So either you have paste full git clone http://<URL>.git or just remove additional letter before git repository URL.

    0 讨论(0)
  • 2020-12-02 05:21

    Mostly it is due to some invisible unicode characters which can come if you hit "Ctrl+V" or "Ctrl+Shift+V" in the terminal. Don't copy and paste the whole command. Instead , type git clone and then copy and paste the url using Right Click + Paste.

    0 讨论(0)
提交回复
热议问题