Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
763 views
in Technique[技术] by (71.8m points)

github - git-upload-pack not found

I'm trying to clone an existing github-repository (Git for Windows) to an empty folder using

git clone https://github.com/di98jgu/D0016E---Digitalt-projekt.git

but keep getting the error message:

fatal: https://github.com/di98jgu/D0016E---Digitalt-projekt.git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?

The server is working fine (others are using it). Have tried adding the paths of git-upload-pack and git-receive-pack to gitconfig,

[remote "origin"] 
url = https://github.com/di98jgu/D0016E--Digital-projekt.git 
fetch = +refs/heads/*:refs/remotes/origin/* 
uploadpack = libexec/git-core/git-upload-pack
receivepack = libexec/git-core/git-receive-pack

but it didn't help. Seems like a lot of people are having problems causing a similar, but not exactly the same, error message git-upload-pack command not found, but don't think these solutions apply to my situation.

Anyone know how to solve this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I just come across this issue right now, it is caused by permissions, please make sure that you current account has the permissions of git pull and git push,in your case , maybe you create a private repository in Github, and not add this account as Manage Collaborators, then the issue come.

Certainly you also should check if the remote URL is completely correct, include case insensitive, https or http.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...