Getting Started
Getting Started
This guide provides information on how to develop GCAM, including the process for adding to the GCAM repository and requirements (e.g., naming convention for branches).
Step-by-step guide
- Clone the GCAM repository (internal developers should clone from stash.pnnl.gov, external developers should clone from github.com/jgcri/gcam-core)
- Create a new branch (see the guide below for how to name your branch)
- Make your changes
- Commit your changes (see the advice below for commits)
- Push your changes (see the advice below for how often to push)
- When your development is complete, open a pull request.
Branch naming guide
Branches should be named as follows [your initials]/[type of branch]/[meaningful name]
The possible options for [type of branch] include:
- “feature” if you are adding a new major feature to GCAM
- “bugfix” if you are making a minor change to GCAM
- “paper” if you are documenting a paper – note these changes may or may not go into the core
General Advice
- Smaller changes are easier to review. Consider breaking a very large development into several smaller incremental pull requests.
- Pushing your changes is a way of backing up your work. More frequent pushing is recommended.