Git Clone - Repository not found

前端 未结 25 1190
心在旅途
心在旅途 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:45

    On macOS it's possible that the cached credentials in the Keychain that git is retrieving are wrong. It can be an outdated password or that it used the wrong credentials.

    To update the credentials stored in OS X Keychain

    Follow the instructions at:

    https://help.github.com/articles/updating-credentials-from-the-osx-keychain/

    If you want to verify this is the problem you can run clone with tracing.

    $ GIT_CURL_VERBOSE=1 git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
    

    Look for the header line "Authorization: Basic BASE64STRING" .
    Take the base64 string and decode it to check what username:password was used.

    $ echo  | base64 --decode
    

    Verify it's the right username password you expected to use.

提交回复
热议问题