When comparing Gitit vs DokuWiki, the Slant community recommends DokuWiki for most people. In the question“What are the best multi-user wikis?” DokuWiki is ranked 1st while Gitit is ranked 4th. The most important reason people chose DokuWiki is:
To install you need a webserver running PHP 5.2 or later where you unpack the downloaded archive and navigate to install.php in your browser, fill out the necessary information required for the one-page installer and you are done.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Lots of export formats
Giti has a multitude of formats that it allows to be exported, including LaTeX, ConTeXt, DocBook, RTF, OpenOffice ODT, and MediaWiki markup.
Pro Supports markdown
Getit supports markdown, a plain text formatting syntax that is designed so that it can be read by HTML.
Pro Free and open source software (FOSS)
Licensed under GPLv2 so you can download source code and customize to meet your needs, provided that you know or are willing to learn Haskell.

Pro Can be used collaboratively by multiple people

Pro Renders math
Using MathJax.
Pro Easy to set up and mantain
To install you need a webserver running PHP 5.2 or later where you unpack the downloaded archive and navigate to install.php in your browser, fill out the necessary information required for the one-page installer and you are done.
Pro Local and open source
Local...
Pro Plain-text file storage
Dokuwiki does not require a database, it stores everything in plain-text.

Pro Version control
Dokuwik offers unlimited page revisions.
Pro Access control
DokuWiki has built-in ACL support.
Pro Runs on any PHP server
It requires a webserver running PHP 5.2 or later of any kind.
Pro A dedicated page for recent changes
A dedicated page to quickly note what has changed recently can be set up.
Pro Search functionality
DokuWiki allows searching through pages.
Pro Very last, consuming very few Local
Local....
Pro Good selection of plugins
DokuWiki offers over a thousand plugins to extend its functionality.
Pro Good selection of themes
DokuWiki offers over a hundred templates to change the visual appearance of the site.
Cons
Con Requires Haskell
On some Linux platforms a binary package for Haskell may not be included in the standard repositories. So, it will be necessary to compile Haskell from source code or find a non-standard package repository, which may seem like a hassle if you don't use Haskell for anything else.
Con Lots of plugins to manage
DokuWiki is highly modular. Even thing like WYSIWYG editors and categories have to be added separately as plugins. This can quickly lead to managing lots of plugins.
