GNU Modula-2 is in the process of migrating into the GCC git tree. At the time of writing this has not completed and therefore the previous two repositories can be used to retrieve gm2.
There are two other repositories containing gm2, one on Savannah which only contains the Modula-2 front end and one on floppsie which contains a gcc repository with a rebased gm2 applied. The floppsie repository is automatically generated from the gcc repository and the Savannah repository. In effect the floppsie repository rebases gm2 to the gcc repository for all supported branches. At the time of writing all developer git pushes are still directed to the Savannah repository (although this is about to change).
The combined git repository can be obtained using the following commands:
$ git clone http://floppsie.comp.glam.ac.uk/gm2 gm2-floppsie $ cd gm2-floppsie $ git checkout gm2-master $ cd ..
If you only need the gm2 front end then this can be obtained from Savannah using the commands:
$ git clone https://git.savannah.nongnu.org/git/gm2.git gm2-savannah $ cd gm2-savannah $ git checkout master $ cd ..
The source code in the git repository on Savannah can be browsed.