Git 클론-저장소를 찾을 수 없음
git clone <url>
치명적인 메시지 제공 : 저장소 'url'not found
링크 의 옵션을 시도했지만 작동하지 않았습니다.
아마도 귀하의 URL이 유효하지 않습니다.
http / https URL 인 경우 URL을 브라우저에 삽입하여 빠르게 확인할 수 있습니다. 아무것도 표시되지 않으면 URL이 유효하지 않은 것입니다.
나는 당신이 원격 저장소에 대해 말하고 있다고 가정합니다. URL은 다음과 비슷해야합니다.
https://github.com/user/repo2.git if you're using HTTPS
git@github.com:user/repo2.git if you're using SSH
다른 사람들이 언급했듯이 URL이 잘못된 경우 오류가 발생할 수 있습니다.
그러나 리포지토리가 개인 리포지토리이고 액세스 권한이 없거나 잘못된 자격 증명이없는 경우 에도 오류가 발생할 수 있습니다 .
대신에
git clone https://github.com/NAME/repo.git
시험
git clone https://username:password@github.com/NAME/repo.git
당신은 또한 사용할 수 있습니다
git clone https://username@github.com/NAME/repo.git
git은 암호를 묻는 메시지를 표시합니다 (댓글에이 힌트를 제공 한 leanne에게 감사합니다).
macOS에서는 git이 검색하는 키 체인의 캐시 된 자격 증명이 잘못되었을 수 있습니다. 오래된 암호이거나 잘못된 자격 증명을 사용했을 수 있습니다.
OS X 키 체인에 저장된 자격 증명을 업데이트하려면
다음의 지침을 따르십시오.
https://help.github.com/articles/updating-credentials-from-the-osx-keychain/
이것이 문제인지 확인하려면 추적을 사용하여 복제를 실행할 수 있습니다.
$ GIT_CURL_VERBOSE=1 git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
헤더 행 "Authorization : Basic BASE64STRING"을 찾으십시오.
base64 문자열을 가져 와서 디코딩하여 어떤 사용자 이름 : 암호가 사용되었는지 확인합니다.
$ echo <the key> | base64 --decode
사용할 것으로 예상 한 올바른 사용자 이름 암호인지 확인하십시오.
나는 또한 같은 문제가 있었다. 나는 개인이었던 저장소를 복제하려고 시도했고 osx에 설치된 내 자식에는 저장소를 복제 할 수없는 키 체인이 있습니다.
나는 시도했다
git clone https://username:password@github.com/NAME/repo.git
하지만 내 암호에 @ 필드가 포함되어 있기 때문에 작동하지 않았습니다.
나는 방금 달렸다
git credential-osxkeychain erase
host=github.com
protocol=https
명령을 입력하고 Enter 키를 누르면 완벽하게 작동합니다. 실제로 OSX에 이미 저장된 키 체인을 제거해야합니다.
나를 위해
git clone https://username@github.com/name/repo.git
일했다.
나는 이것이 주로 Private repo에 직접 액세스 할 수 없기 때문에 발생한다고 생각합니다.
Repository not found처음에 잘못된 GitHub 계정으로 로그인했기 때문에 동일한 문제 ( )가 발생했습니다. 그것을 해결하기 위해:
- 시작 메뉴에서 제어판을 엽니 다.
- 사용자 계정을 선택하십시오.
- 왼쪽 메뉴에서 "자격 증명 관리"를 선택합니다.
- Git 또는 GitHub와 관련된 모든 자격 증명을 삭제합니다.
"리디렉션 / 로그인 URL"또는 "리포지토리를 찾을 수 없음"오류가 발생했기 때문에 내 문제를 해결 한 방법
MacOS 사용자 :
- 스포트라이트 열기 (명령 공간)
- 키 체인 입력 (열기 키 체인 access.app)
- 저장소 도메인 검색 (GitHub, GitLab 등)
- Delete all keys related to this domain
- Try to clone again (with valid credentials)
Windows users should try similar steps, but Keychain would be Microsoft's Credentials Manager instead or Windows Credentials depending on yours OS version. Make sure to clean both web and windows credentials if that's the case.
On github you can have the main repository and subfolders. Make sure that the URL that you are using is that of the main repository and not that of a folder. The former will succeed and the latter will produce the repository not found error. If you have a doubt you are in a subfolder, navigate up the repository chain till you find a page which actually specified the https URL and use that.
git clone https://username@github.com/User/Repository.git will prompt for a password then clone.
If you are using two factor authorization (2FA) for your Github account then just use SSH option for cloning your repository:
This is happening because of my old session state of other user remain: Below is quick solution for Windows users,
Open Control Panel from the Start menu Select User Accounts Select "Manage your credentials" in the left hand menu Delete any credentials related to Git or GitHub
Once I did this, it started working for me.
You may need to create an empty file named git-daemon-export-ok within the repository directory.
If you are using cygwin for git and trying to clone a git repository from a network drive you need to add the cygdrive path.
For example if you are cloning a git repo from z:/
$ git clone /cygdrive/z/[repo].git
Authentication issue: I use TortoiseGit GUI tool, I need to tell tortoise the username and password so that it can access to work with Git/GitHub/Gitlab code base. To tell it, rt click inside any folder to get TortoiseGit menu. Here TortoseGit > Settings Window > Select Credentials in left nav tree Enter URL:Git url Helper: Select windows if your windows credentials are same as the ones for Git or 'manager' if they are different userName; Git User Name Save this settings ans try again. You will be prompted for password and then it worked.
Possibly you did login in another account, and that account doesn't have access rights to this repo, if you're using mac os, go to Keychain Access, search for gitlab.com and remove it and try to git clone again.
I'm a devops engineer and this happens with private repositories. Since I manage multiple Github organizations, I have a few different SSH keys. To overcome this ERROR: Repository not found. fatal: Could not read from remote repository. error, you can use
export GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -o User=git -i ~/.ssh/ssh_key_for_repo"
git clone git@github.com:user/repo.git
참고URL : https://stackoverflow.com/questions/25947059/git-clone-repository-not-found
'IT TIP' 카테고리의 다른 글
| Rails에서 슬러그 (사람이 읽을 수있는 ID)를 생성하는 가장 좋은 방법 (0) | 2020.11.28 |
|---|---|
| 세미콜론이없고 IF / WHILE / FOR 문이없는 C의 hello world (0) | 2020.11.28 |
| 크롬 탭에서 X 버튼을 제거하는 방법이 있습니까? (0) | 2020.11.28 |
| 여러 계정으로 인앱 구매 (0) | 2020.11.28 |
| 왜 C에서 수학 라이브러리를 연결해야합니까? (0) | 2020.11.28 |
