Git fatal: protocol 'https' is not supported

前端 未结 15 1343
我寻月下人不归
我寻月下人不归 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条回答
  • 2021-01-29 22:00

    I got this error when I was trying to be smart and extract the cloning URL from the repo's URL myself. I did it wrong. I was doing:

    git@https://github.company.com/Project/Core-iOS
    

    where I had to do:

    git@github.company.com:Project/Core-iOS.git
    

    I had 3 mistakes:

    • didn't need https://
    • after .com I need : instead of /
    • at the end I need a .git
    0 讨论(0)
  • 2021-01-29 22:01

    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.

    0 讨论(0)
  • 2021-01-29 22:03

    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.

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