Reputation: 1927
I'm trying to clone some code I have in a private repository using the following command:
git clone https://github.com/username/repo_name.git
When I do this I get the error in the following format:
fatal: https://github.com/username/repo_name.git/info/refs?service=git-upload-pack not found: did you run it update-server-info on the server?
How do I fix this issue? Am I using the the wrong URL when I'm trying to clone the repository?
Upvotes: 1
Views: 4117
Reputation: 1323115
As illustrated in this issue, this is generally linked to an incorrect address:
Upvotes: 1
Reputation: 1560
Yeah, I think you should use git clone [email protected]:username/repo_name.git
.
By the way, I can see you added github-for-windows
tag - the easiest way to clone repo is to open GitHub for Windows application and clone it from there, because that way you can also clone any submodules you have in the repo without adding any parameters to git clone
command.
Upvotes: 0