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

前端 未结 20 2196
遇见更好的自我
遇见更好的自我 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:22

    My solution:

    1. Type: git clone .
    2. Copy the repository url and paste it after of git clone .
    3. Move the cursor to position between git clone and https://... .
    4. Delete space if it had between git clone and https://... until have git clonehttps://...
    5. Re-add the space and press Enter.
    0 讨论(0)
  • 2020-12-02 05:25

    Use backspace to delete whatever there is between git clone and the url and then use spacebar to add a clean space between them. Simple as that.

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

    if you are using windows use 'url' speech marks to open and close your url eg git clone 'your-url-here'

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

    I used double quotes for the URL and it worked. So something like

    git clone "​​http://git.fedorahosted.org/git/ibus-typing-booster.git"
    

    works.. single quotes dont help. It has to be double quotes.

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

    If you are using Git Extensions GUI or GitHub Desktop (means if you're using any UI software and not command-line tool) to clone the repo then you have to copy and paste only the URL i.e. https://... So there is no need to have git clone before URL as That Software will do it itself.

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

    in visual studio code option git:clone i tried every thing e.g putting 5 backspace, deleting the special Unicode character! and putting space nothing works for me

    solution works for me

    simply open git bash and paste the whole git clone url and done,

    it seems there is some issue with visual studio code

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