GN.
GN.

Reputation: 9839

Github clone wiki "not found'

How do you clone a Github wiki.

The several times I've copied to command from our repo and attempted to clone locally..

git clone https://github.com/[orgname]/[name].wiki.git

I get this error: fatal: repository git clone https://github.com/[orgname]/[name].wiki.git not found

Upvotes: 2

Views: 1403

Answers (2)

VonC
VonC

Reputation: 1324957

If it does not work with HTTPS, but works with SSH, it is possible:

  • the repository is a private one
  • the wrong credentials are cached (check git config --global credential.helper: you might need to remove the credential associated to github.com)
  • the right GitHub user is identified through an SSH URL because of the default ~/.ssh/id_rsa private key whose public key is correctly registered.

A wrong authentication would generate a 404 (as a security best practice to avoid confirming the existence of a user when bad credentials are provided)

Upvotes: 0

GN.
GN.

Reputation: 9839

Not sure why it isn't working with the HTTPS, but I changed it to: git clone [email protected]:devforce/trailmaker.wiki.git and it works now.

Upvotes: 2

Related Questions