Git error: “Please make sure you have the correct access rights and the repository exists”

后端 未结 27 919
面向向阳花
面向向阳花 2020-12-12 14:49

I am using TortoiseGit on Windows. When I am trying to Clone from the context menu of the standard Windows Explorer, I get this error:

Please make sur

相关标签:
27条回答
  • 2020-12-12 15:26

    If you're on a shared machine, using your own password or passwordless private key might be overkill. The safer option is an access token:

    1. Go to Settings, Developer Settings, Personal access tokens
    2. Generate new token.
    3. Note what the token is for.
    4. Grant repo access.
    5. Clone the repo:
    $ git clone https://<token>@github.com/<user>/<repo>.git
    

    If you've already cloned the repo, you could just modify your remote setting:

    $ git remote set-url origin https://<token>@github.com/<user>/<repo>.git
    $ git pull
    Already up to date.
    
    0 讨论(0)
  • 2020-12-12 15:27

    Your git URL might have changed. Change the URL in the local directory by using the following command

    git remote set-url origin git@yourGitUrlHere
    
    0 讨论(0)
  • 2020-12-12 15:29

    Try https instead of ssh. Choose the https option from project home page where you copy the clone url from.

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