简体   繁体   中英

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

不知道为什么它不能与 HTTPS 一起使用,但我将其更改为: git clone git@github.com:devforce/trailmaker.wiki.git并且现在可以使用了。

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM