How to Contribute#
Follow these steps only once#
Go to campa-consortium/pals.
Click the pulldown arrow next to
Fork, clickCreate a new fork, and specify your GitHub username in theOwnerfield (e.g., “username”).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.)
On your local machine, from the terminal, clone the main repository:
git clone git@github.com:campa-consortium/pals.git
cd pals
Rename what we just cloned: call it “mainline”:
git remote rename origin mainline
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#
Change into the working directory for your local repo:
cd pals
Make sure your local repository is up-to-date:
git checkout main
git pull
Create a new branch with a descriptive name for the desired changes (e.g., “add_template”):
git checkout -b add_template
Make the desired changes to the local files. For example, add a new file “pull_request_element_template.md”
View the proposed changes via
git status(optional).Add the changes to your local staging area:
git add pull_request_element_template.md
Commit the changes to your local repo, including an informative message:
git commit -m "Add element template."
Push the changes to your fork:
git push -u username add_template
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.
Add a title and additional information relevant to the pull request (as needed).