Git Clone - Repository not found

前端 未结 25 1196
心在旅途
心在旅途 2020-12-07 09:31
git clone 

gives the message fatal: repository \'url\' not found

I tried the options in the link, but it didn\'t work.

25条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 09:41

    Most probably, your URL is not valid.

    If it is a http/https URL, you can quickly check, by hammering the URL into a browser. If that does not display anything at all, you know that the URL is invalid.

    I assume you are speaking of a remote repository. The URLs should look somewhat like these:

    https://github.com/user/repo2.git if you're using HTTPS
    git@github.com:user/repo2.git if you're using SSH
    

提交回复
热议问题