Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to push to github wiki without username and password?

Tags:

github

I've succeeded to config to pull/push from my github repo without username and password using ssh-key.

But I cannot find a way to pull/push wiki for that repo without username and password.

Could someone please help?

Thanks!

like image 990
dvn0zzz Avatar asked Dec 03 '16 07:12

dvn0zzz


People also ask

Is GitHub wiki free?

Wikis are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud and GitHub Enterprise Server.

Can you fork a GitHub wiki?

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!)


1 Answers

Wikis are just Git repositories, you can make changes locally and push them to your repository. But you have to clone it separately.

Append .wiki.git to the repository name.

That is, if your repository name was foobar:

git clone [email protected]:myusername/foobar.git

would be the path to clone your repository and

git clone [email protected]:myusername/foobar.wiki.git

would be the path to clone its wiki.

Also you can search the clone link on the wiki page on the bottom right side with heading:

Clone this wiki locally

enter image description here

Here you will find the https clone link just change it to ssh clone link it will get cloned to your local and you can update the repo from your local.

This should be the format for the ssh link:

git@<host>:<username>/<repo_name>.wiki.git

Once you have cloned the wiki, you can add new files, edit existing ones, and commit your changes. You and your collaborators can create branches when working on wikis, but only changes pushed to the master branch will be made live and available to your readers.

like image 50
Deepesh Avatar answered Sep 30 '22 02:09

Deepesh