Git Clone - Repository not found

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

    open Credential Manager -> look for your GIT devops profile -> click on it -> edit -> add user and password generated in DevOps and save.

    0 讨论(0)
  • 2020-12-07 09:59

    if your git repo is private, try this

    git clone https://<USERNAME>:<PASSWORD>@github.com/<USERNAME>/<REPO_NAME>.git
    

    else use this

    git clone https://github.com/<USERNAME>/<REPO_NAME>.git
    
    0 讨论(0)
  • 2020-12-07 10:02

    For me it worked by removing the credential.helper config and cloning the repository again

    git config --global --unset credential.helper
    git clone https://<repository>
    
    0 讨论(0)
  • 2020-12-07 10:03

    You may need to create an empty file named git-daemon-export-ok within the repository directory.

    0 讨论(0)
  • 2020-12-07 10:05

    git clone https://username@github.com/User/Repository.git will prompt for a password then clone.

    0 讨论(0)
  • 2020-12-07 10:05

    This issue started surfacing on my terminal after I enabled GitHub 2FA.

    Now, I face this issue whenever I clone a private repository. This error:

    remote: Repository not found.
    fatal: repository 'https://github.com/kmario23/repo-name.git/' not found

    is so awkward. Of course, I have this repo and I'm the owner of it.

    Anyway, it seems the fix is now that we have to enter the GitHub username one more time when cloning a private repo. Below is an example:

                                 add your username
                                    |-------|
    $ git clone --recursive https://kmario23@github.com/kmario23/repo-name.git
    
    0 讨论(0)
提交回复
热议问题