How to Contribute#

Follow these steps only once#

  1. Go to campa-consortium/pals.

  2. Click the pulldown arrow next to Fork, click Create a new fork, and specify your GitHub username in the Owner field (e.g., “username”).

  3. Go back to campa-consortium/pals, click Code > SSH, and copy the url of the repo: (e.g., git@github.com:campa-consortium/pals.git)

The simpler option Code > HTTPS can be used if the user just want to look at the repo. (This does not require a password setup.)

  1. On your local machine, from the terminal, clone the main repository:

git clone git@github.com:campa-consortium/pals.git
cd pals
  1. Rename what we just cloned: call it “mainline”:

git remote rename origin mainline
  1. Add your remote repository in order to track it locally:

git remote add username git@github.com:username/pals.git

Follow these steps each time you submit a pull request#

  1. Change into the working directory for your local repo:

cd pals
  1. Make sure your local repository is up-to-date:

git checkout main
git pull
  1. Create a new branch with a descriptive name for the desired changes (e.g., “add_template”):

git checkout -b add_template
  1. Make the desired changes to the local files. For example, add a new file “pull_request_element_template.md”

  2. View the proposed changes via git status (optional).

  3. Add the changes to your local staging area:

git add pull_request_element_template.md
  1. Commit the changes to your local repo, including an informative message:

git commit -m "Add element template."
  1. Push the changes to your fork:

git push -u username add_template
  1. Follow the link that is generated to open a new pull request on GitHub that includes these changes, e.g., go to campa-consortium/pals.

  2. Add a title and additional information relevant to the pull request (as needed).