GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.github.com — Troubleshooting cloning errors - GitHub Docs Troubleshooting cloning errorsIf you're having trouble cloning a repository, check these common errors. In this articleHTTPS cloning errorsThere are a few common errors when using HTTPS with Git. These errors usually indicate you have an old version of Git, or you don't have access to the repository. Here's an example of an HTTPS error you might receive:
Check your Git versionThere's no minimum Git version necessary to interact with GitHub, but we've found version 1.7.10 to be a comfortable stable version that's available on many platforms. You can always download the latest version on the Git website. Ensure the remote is correctThe repository you're trying to fetch must exist on GitHub.com. You can find the URL of the local repository by opening the command line and
typing
Alternatively, you can change the URL through our GitHub Desktop application. Provide an access tokenTo access GitHub, you must authenticate with a personal access token instead of your password. For more information, see Managing your personal access tokens. If you are accessing an organization that uses SAML SSO and you are using a personal access token (classic), you must also authorize your personal access token to access the organization before you authenticate. For more information, see About authentication with single sign-on and Authorizing a personal access token for use with single sign-on. Check your permissionsWhen prompted for a username and password, make sure you use an account that has access to the repository. Tip If you don't want to enter your credentials every time you interact with the remote repository, you can turn on credential caching. If you are already using credential caching, please make sure that your computer has the correct credentials cached. Incorrect or out of date credentials will cause authentication to fail. Use SSH insteadIf you've previously set up SSH keys, you can use the SSH clone URL instead of HTTPS. For more information, see About remote repositories. Error: Repository not foundIf you see this error when cloning a repository, it means that the repository does not exist or you do not have permission to access it. There are a few solutions to this error, depending on the cause. Check your spellingTypos happen. If you try to clone To avoid this error, when cloning, always copy and paste the clone URL from the repository's page. For more information, see Cloning a repository. To update the remote on an existing repository, see Managing remote repositories. Checking your permissionsIf you are trying to clone a private repository but do not have permission to view the repository, you will receive this error. Make sure that you have access to the repository in one of these ways:
Check your SSH accessIn rare circumstances, you may not have the proper SSH access to a repository. You should ensure that the SSH key you are using is attached to your personal account on GitHub. You can check this by typing the following into the command line:
If the repository belongs to an organization and you're using an SSH key generated by an OAuth app, OAuth app access may have been restricted by an organization owner. For more information, see About OAuth app access restrictions. For more information, see Adding a new SSH key to your GitHub account. Check that the repository really existsIf all else fails, make sure that the repository really exists on GitHub.com! If you're trying to push to a repository that doesn't exist, you'll get this error. Error: Remote HEAD refers to nonexistent ref, unable to checkoutThis error occurs if the default branch of a repository has been deleted on GitHub.com. Detecting this error is simple; Git will warn you when you try to clone the repository:
To fix the error, you'll need to be an administrator of the repository on GitHub.com. You'll want to change the default branch of the repository. After that, you can get a list of all the available branches from the command line:
Then, you can just switch to your new branch: |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |