I just created a Wiki for a Github repo, and cloned it to my desktop. There is only the option to clone using https
, which means every time I try to push git
asks me for my username and password.
Is there some way to use SSH in a Github Wiki as I do with all my standard repos?
I checked the Wiki help but couldn't find anything there.
I' using 2FA in Github by the way.
GitHub SSH config With the public key copied, log into GitHub and go to your account settings. A link exists for SSH and GPG keys. Click on this link, add a GitHub SSH key, paste the value of the public key into the appropriate field, and give your key a creative name.
Probably the most common transport protocol for Git is SSH. This is because SSH access to servers is already set up in most places — and if it isn't, it's easy to do. SSH is also the only network-based protocol that you can easily read from and write to.
While SSH is usually considered more secure, for basic usage of Github, HTTPS authentication with a password is acceptable enough.
You can also clone wiki via ssh :
git clone [email protected]:YOUR_USERNAME/YOUR_REPOSITORY.wiki.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With