I am trying to edit and make changes on another persons wiki for their repo. I cloned it locally with the following:
git clone https://github.com/***/***.wiki.git
I then edited it and completed the desired changes. Now, how do I go about pushing said changes? Do I need to open a pull request for this and how would I go about it? Any help would be greatly appreciated. I tried to push changes on the same remote origin branch but I get the Permission denied (publickey) error.
How do I edit a page? To edit the whole page at once, click the "edit this page" tab at the top. To edit just one section, click the "edit" link to the right of the section heading. To edit on Wikipedia, you type in a special markup language called wikitext.
You can edit files directly on GitHub in any of your repositories using the file editor.
You can't fork it directly on GitHub, but you can get Git access to it by going into the Git access tab of the wiki and you should be able to fork it on your local machine and edit it as much as you want (and even get updates to it!)
How do I add files to a wiki page? You need to clone the wiki repo and edit it on your system. Add files to the files directory (or subdirectory below it). For example: files/project-presentation.
There are two problems here. The first is that you actually seemed to have cloned at ssh linked git repository such as
[email protected]:/***/**.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:
git clone [email protected]:/***/**.wiki.git
git checkout -b some_branch
git add page.md
git commit -m "Added blah blah instructions"
git checkout master
git merge some_branch
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).
Not possible!
Though, you could open an issue to ask the mainter(s) to make the wiki publicly editable.
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