Programing

Github 리포지토리에서 "git update-server-info를 실행 했습니까?"오류

crosscheck 2020. 7. 1. 08:08
반응형

Github 리포지토리에서 "git update-server-info를 실행 했습니까?"오류


웹 사이트에서 github Gui를 사용하여 내 repos를 관리하고 있으며 다음 오류가 발생합니다.

fatal: https://github.com/TeaCodie/TeaCodie-Website.git/info/refs not found: 
did you run git update-server-info on the server?

이 문제를 어떻게 해결할 수 있습니까?


저장소 이름을 변경했을 수 있습니다

로컬 저장소에서 파일을 편집하십시오.

.git/config

그런 다음 확인하십시오.

[remote "origin"]
   url = 

URL이 원격 저장소와 일치 함


http://github.com 에서 same name? 를 사용하여 새 리포지토리를 만들었습니까 ?

그렇지 않다면 그렇게하십시오! 각 문자가 정확 하고 대소 문자를 구분 하는지 확인하십시오 .


제 경우에는 github 계정에 repo에 대한 권한이 없습니다. 리포지토리의 공동 작업자로 github 계정을 추가하고 수정했습니다.


이 오류는 주로 잘못된 URL로 인해 발생합니다. 다음을 확인하십시오.

  • http 또는 https
  • URL 이름
  • username @ git_url
  • 잘못된 자식 이름

개인 (또는 삭제 된) 저장소 인 것 같습니다. 로그인하는 동안 리포지토리 페이지를 방문하면 실제 URL을 제공합니다. 아마도 https : //TeaCodie@github.com/TeaCodie/TeaCodie-Website.git것입니다 .


또한 입력 한 리포지토리가 올바르게 입력되어 있는지 확인하십시오 (대소 문자 구분).


github 저장소 를 사용하고 OS X Keychain Credential helper 를 사용하는 동안 https 를 통해 연결하는 동안 동일한 문제가 발생했습니다 .

내 문제는 OS X의 키 체인에 잘못된 자격 증명이 저장되어 있다는 것입니다 ([username] @ github.com 주소 대신 github.com에 가입 할 때 사용한 이메일 주소를 사용하고있었습니다). 키 체인에서 이전 계정을 삭제하고 @ github.com 계정 만 남겨두고 문제를 해결했습니다.

관련이 있는지 확실하지 않지만 user.email로컬 구성을 확인했을 때 :

git config -l

잘못된 이메일 주소도 표시되었으므로 user.email올바른 계정을 사용하도록 로컬 자식 업데이트했습니다 .

git config user.email <username>@github.com

내 문제는 github에서 제공하는 복제 https URL 위젯을 사용한다는 것입니다. 이 URL은 사용자 이름을 앞에 추가해야하므로 개인 저장소에서 작동하지 않습니다.

예 : john이 소유하고 공동 작업자 sam과 widget이라는 이름의 개인 저장소는 올바른 URL입니다.

https : //sam@github.com/john/widget.git

github는 다음 URL을 제공했습니다.

https://github.com/john/widget.git

오류 메시지가 많이 남아 있습니다.


사용자 계정이 협업 자로서 저장소에 추가되었는지 확인하십시오.

설정-> 공동 작업자


이것은 나에게 일어 났고 처음에는 무엇이 잘못되었는지 분명하지 않았다. 전날 github.com에서 repo의 이름을 바꾸어 repo 이름의 첫 문자 만 소문자에서 대문자로 변경했습니다. 원본 URL의 리포지토리 이름이 대 / 소문자를 구분한다는 사실을 알지 못했습니다. "서버에서 git update-server-info를 실행 했습니까?" 원래 URL에서 동일한 문자의 대소 문자를 수정하기 위해 .git / config 파일을 편집하면 문제가 해결되고 더 이상 오류가 발생하지 않으며 github.com의 변경 사항을 다시 한 번 리포지토리로 푸시 할 수있었습니다. . 또 다른 조언 : github에서 리포지토리를 변경하는 경우 로컬 리포지토리 동기화를 즉시 테스트하십시오. 내 경우에는 그렇지 않았으며 다음 날 동기화를 시도했지만 실패했습니다. ' 오류 때문에 t와 repo의 이름을 바꾼 것을 잊었으므로 머리를 조금 긁고있었습니다. 동기화를 즉시 테스트했다면이 문제를 바로 잡았을 것입니다.


나는 같은 문제를 만났다.
이 문제를 해결하는 방법은 다음과 같습니다.
"git push origin master"를 입력하면 git bash를 사용하여 새 저장소를 만듭니다.

"치명적인 : https://github.com/TeaCodie/TeaCodie-Website.git/info/refs 찾을 수 없음 : 서버에서 git update-server-info를 실행 했습니까?"

마지막으로, github에 레포가 전혀 없다는 것을 알았습니다.
github에서 먼저 새로운 저장소를 만드는 것이 좋습니다.

이 경험이 누군가에게 도움이 될 수 있습니다.


git cloneKiln에서 실제로 Mercurial 저장소 인 것을 시도 할 때도 이와 동일한 오류가 발생했습니다 .


내 경우에는 저장소 URL (https 대신 http)에서 잘못된 프로토콜을 사용하고있었습니다.


도달하려는 저장소가 삭제 된 경우에도이 오류가 발생할 수 있습니다.


In my case I had old version of the git. Upgrade to latest version fixed this issue.


probably you were trying to clone like this:

git clone https://github.com/TeaCodie/TeaCodie-Website.git

Then you got this error:

fatal: https://github.com/TeaCodie/TeaCodie-Website.git/info/refs not found: did you run git update-server-info on the server?

Here is what worked for me:

git clone https://github.com/TeaCodie/TeaCodie-Website.git/.git

because the directory "info/refs" is in the .git directory.


In my repo's directory on my machine in the terminal I had to reset the origin url:

git remote set-url origin git@github.com:repoaccountname/repo-name.git

I got this issue when using GitStack. I looked into C:/GitStack/apache/logs/error.log and found that GitStack was looking for the repository in the wrong location although its settings said D:/Repositories (my custom location), GitStack looked for the repositories in its default location. So I simply went and save the settings again from GitStack admin page. It solved the problem.


In my case, I was trying to clone a private repository in our group Github account to me laptop:

Yuqians-MacBook-Air:regenerateSNID yuqianliu$ git clone https://github.com/nyusngroup/velocity_CCSNe.git
Cloning into 'velocity_CCSNe'...
fatal: https://github.com/nyusngroup/velocity_CCSNe.git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?

I found two ways can solve this.

(1) Use http instead of https. It asks me the name and password of our group Github account. After I entered the information, I can clone it.

Yuqians-MacBook-Air:regenerateSNID yuqianliu$ git clone http://github.com/nyusngroup/velocity_CCSNe.git
Cloning into 'velocity_CCSNe'...
Username for 'http://github.com':nyusngroup
Password for 'http://nyusngroup@github.com': 

(2) Add my Github account to the collaborators of the private repository in our group Github account, as pointed by Monkey King's answer above.


I encountered this message when using Jenkins 2.176.1 and git plugin 3.10.0 using a very old command line git version (1.7.1) as included on CentOS 6.

The message does not occur on newer versions of command line git (1.8 or later) with the Jenkins git plugin.

Upgrading to a newer command line git version resolves the problem.

Officially, the Jenkins git plugin does not support command line git 1.7.1. The minimum supported version is command line git 1.7.10. Many Jenkins git plugin use cases require at least command line git 1.9.0.

Command line git 1.7.1 behaves differently than later versions when a repository has been initialized (with git init) and then a git fetch is performed with a refspec which references 'origin'. Later versions of command line git do not have the same problem.

참고URL : https://stackoverflow.com/questions/9343189/did-you-run-git-update-server-info-error-on-a-github-repository

반응형