skip to content
james@kartar:~/2015/02/treat-github-wiki-like-a-repository

Treat GitHub Wiki like a repository

A quick note that every GitHub wiki is a Git repository so you can clone it directly instead of scraping the content

1 min read

# written 11 years ago; commands, versions and links may have changed

I recently needed to export all the articles from a GitHub wiki. I had thought I’d need to scrape it but I discovered that each GitHub wiki is in fact a Git repo.

If you need a copy of the content you can just clone it via Git.

$ git clone git@github.com:username/repo_name.wiki.git

That’s neat and I hope it’s useful to someone else.

$ whoami

I'm James Turnbull. I lead engineering teams, build products, and write on technology. More about me.