The official PostGIS code repository is the Subversion repository (http://svn.osgeo.org/postgis/). A numbe of CodeMirrors do exist for users and contributor's convenience.