[Solved-5 Solutions] Github: error cloning my private repository
Error Description:
Github: error cloning my private repository
Solution 1:
- Should we be able to clone private repositories with:
- Because when we try that atm we getting the following error:
- We can successfully use features like git pull-request
- These are the versions we use (hub is installed via brew):
Solution 2:
- Check spelling
- Typos happen, and repository names are case-sensitive. If we try to clone
git@github.com:user/repo.git,
but the repository is really namedUser/Repo
we will receive this error. - To avoid this error, when cloning, always copy and paste the clone URL from the repository's page. To update the remote on an existing repository, see "Changing a remote's URL .
Check permissions
- If we are trying to clone a private repository but do not have permission to view the repository, we will receive this error.
- Make sure that we have access to the repository in one of these ways:
- The owner of the repository
- A collaborator on the repository
- A member of a team that has access to the repository (if the repository belongs to an organization)
- Check your SSH access
- In rare circumstances, we may not have the proper SSH access to a repository.
- we should ensure that the SSH key we are using is attached to your GitHub user account. we can check this by typing the following into the command line:
- Check that the repository really exists
- If all else fails, make sure that the repository really exists on GitHub! If we're trying to push to a repository that doesn't exist, we'll get this error.
Solution 3:
- we have seen this on Windows, with msysgit 1.7.2.3. we have to fix the path to bin/curl-ca-bundle.crt. we had to specify the absolute path, using back-slashes:
- Or - not really recommended -we may choose to switch off SSL checks completely by executing:
- For both cases, this will result in changes to [git-install-dir]/etc/gitconfig file, which may be edited directly, too.
Solution 4:
- We run the cmd to view ca-certificates:
- But actually we found the certificates at the path:
- Then add the config into ~/.gitconfig (if not existing, create it):
- It works!
Solution 5:
- We solved the problem installing the Git from: Locate the cert file path:
- Configure the Git path:
Learn git - git tutorial - gitbit errors cloning - git examples - git programs