‹ BackHN Continuity

Thread

The GitHub wiki is an anti-pattern (2022)

175 points · 112 comments · ibobev

  1. sigvef · · focus · HN ↗
    Not many people know that the github wiki is actually backed by a separate &quot;hidden&quot; repo, and can be accessed by adding .wiki to the repo url, e.g. <a href="https:&#x2F;&#x2F;github.com&#x2F;lionleaf&#x2F;dwitter.wiki.git" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lionleaf&#x2F;dwitter.wiki.git

    Apparently it can even do CI stuff. Still wouldn&#x27;t recommend it though, for the other reasons outlined in TFA and this thread.

    1. annex-winged-cr · · focus · HN ↗
      It leads to a 404 page on my end.
      1. sheept · · focus · HN ↗
        It’s not a web page; it’s a git remote url
    2. WorldMaker · · focus · HN ↗
      I seem to recall that GHE allowed you at one point to point a Wiki to a &#x2F;docs or &#x2F;docs&#x2F;wiki subdirectory. I still don&#x27;t know why that never became a public GitHub.com feature. Sure it is technically redundant with the file browser if you know how to use the view controls and don&#x27;t mind the UI sprawl of the file browser, but I still think it would be a good feature.
    3. isityettime · · focus · HN ↗
      It&#x27;s in the docs, so it&#x27;s not exactly hidden:

      &gt; You can edit wikis directly on GitHub, or you can edit wiki files locally.

      <a href="https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;communities&#x2F;documenting-your-project-with-wikis&#x2F;adding-or-editing-wiki-pages#cloning-wikis-to-your-computer" rel="nofollow">https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;communities&#x2F;documenting-your-proj...

      &gt; Every wiki provides an easy way to clone its contents down to your computer. Once you&#x27;ve created an initial page on GitHub, you can clone the repository to your computer with the provided URL.

      Every GitHub wiki you visit also has a section at the bottom that points to that URL with the description

      &gt; Clone this wiki locally

      as well.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.