If you're working with GNU/Linux, consider Zim, the desktop wiki.
Some points for Zim:
- Zim stores your notes in plain text with only light markup so you can also edit them with your favorite plain text editor.
- Built-in support for version control systems, including git
- Equations and Plots with LaTeX and Gnuplot
- Supports multiple wikis