Skip to content
Daniel R. Grayson edited this page Jun 16, 2014 · 26 revisions

How to use git with Macaulay2

For non-package-developers

To get the source code of Macaulay2 if you are not a package developer, one "clones" our git repository with one of the following shell commands:

The source code will appear in a directory called M2, which you may rename if you wish. In that directory you can find the following items of interest:

  • Source code for the package Foo: the file M2/Macaulay2/packages/Foo.m2 and possibly the directory M2/Macaulay2/packages/Foo/ and its contents.
  • Instructions for building Macaulay2: M2/INSTALL

For package developers

Start by "forking" the Macaulay2 repository, by following the following steps in a browser.

Then use one of the following shell commands to get a copy of your copy of the source code of Macaulay2:

Clone this wiki locally