Checking out the Source Code
Subscribe

From OpenNMS

Jump to: navigation, search

The official OpenNMS Source Code repository is hosted in Git on SourceForge.

Click here for the SourceForge page describing our Git repository.

You can browse the Git repository here.

If you're using Eclipse for development, see EGit to access the repository directly from Eclipse. For more specific information about using EGit with OpenNMS see EGit.

Accessing the Repository

To access the repository using the git command-line client, first you must clone the repository:

 git clone git://opennms.git.sourceforge.net/gitroot/opennms/opennms

By default, this will check out a copy of the master repository, which is analogous to the old OpenNMS trunk in Subversion.

To check out a branch, such as the OpenNMS 1.6 testing branch, you can create a local copy with "git checkout -b", like so:

 git checkout -b 1.6-testing remotes/origin/1.6-testing

To check out a tag, you do the same thing, but use the tag name instead:

 git checkout -b opennms-1.6.3 opennms-1.6.3

Doing OpenNMS Development

For more details on working with our Git repository, and suggestions on how to work in branches, see the Developing with Git page.