Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
770 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 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...