Git fatal: protocol 'https' is not supported

前端 未结 15 1366
我寻月下人不归
我寻月下人不归 2021-01-29 21:32

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:

15条回答
  •  猫巷女王i
    2021-01-29 21:48

    This issue persisted even after the fix from most upvoted answer.

    More specific, I pasted in the link without "Ctrl + v", but it still gave fatal: protocol 'https' is not supported.

    But if you copy that message in Windows or in Google search bar you will that the actual message is fatal: protocol '##https' is not supported, where '#' stands for this character. As you can see, those 2 characters have not been removed.

    I was working on IntelliJ IDEA Community Edition 2019.2.3 and the following fix refers to this tool, but the answer is that those 2 characters are still there and need to be removed from the link.

    IntelliJ fix

    Go to top bar, select VCS -> Git -> Remotes... and click.

    Now it will open something link this

    You can see those 2 unrecognised characters. We have to remove them. Either click edit icon and delete those 2 characters or you can delete the link and add a new one.

    Make sure you have ".git" folder in your project folder.

    And now it should like this. Click "Ok" and now you can push files to your git repository.

提交回复
热议问题