There are two problems here. The first is that you actually seemed to have cloned at ssh linked git repository such as
git@github.com:/***/**.wiki.git
And thus why it is saying Permission denied (publickey)
. If you'd cloned a https
git repo then you would type username / password.
As to how to edit a github wiki locally - By default the branch is master. If you choose to work on sub-branches to separate the work, then you'll need to merge to your local master branch and push. There doesn't seem to be a way to have pull requests for wiki pages.
In summary:
- If not done, setup your public/private ssh key in github - https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
- Checkout your repo locally -
git clone git@github.com:/***/**.wiki.git
- Optionally branch so as to separate the work(s) -
git checkout -b some_branch
- Edit your wiki pages with a markdown editor (I used IntelliJ with a Markdown plugin - it can display the markdown on one page and the rendered page next to it, which is nice.)
- Add and commit your work:
git add page.md
git commit -m "Added blah blah instructions"
- Optionally merge back to master:
git checkout master
git merge some_branch
- Push it back to the github repo -
git push
Remember, you can't seem to be able to do pull requests with github wiki pages (since the only branch available through Github is master).