Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git-upload-pack not found

Tags:

git

github

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?

like image 548
Viktor Stärn Avatar asked Mar 10 '13 14:03

Viktor Stärn


People also ask

What does git upload pack do?

SYNOPSIS. git-upload-pack [--[no-]strict] [--timeout=<n>] [--stateless-rpc] [--advertise-refs] <directory> DESCRIPTION Invoked by 'git fetch-pack', learns what objects the other side is missing, and sends them after packing. This command is usually not invoked directly by the end user.

Can not open Git receive pack eclipse?

In the repository window, select the repository and expand and right-click Remotes and choose Create Remote. Copy the GitHub repository URI from the GitHub repository page and paste it in the URI box. Hit Next and cross your fingers. If your get "auth fail", restart Eclipse and try step 5 again.


1 Answers

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.

like image 143
shanegao Avatar answered Sep 25 '22 04:09

shanegao