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