We will follow ModOpt policy concerning contributions.
If you would like to take a more active roll in the development of MCCD you can do so by submitting a "Pull request". A Pull Requests (PR) is a way by which a user can submit modifications or additions to the MCCD package directly. PRs need to be reviewed by the package moderators and if accepted are merged into the master branch of the repository.
Before making a PR, be sure to carefully read the following guidelines.
The following steps should be followed before making a pull request:
-
Log into your GitHub account or create an account if you do not already have one.
-
Go to the main MCCD repository page: https://github.com/CosmoStat/mccd
-
Fork the repository, i.e. press the button on the top right with this symbol . This will create an independent copy of the repository on your account.
-
Clone your fork of ModOpt.
git clone https://github.com/YOUR_USERNAME/mccd
- Add the original repository (upstream) to remote.
git remote add upstream https://github.com/CosmoStat/mccd
The following steps should be followed to make a pull request:
- Pull the latest updates to the original repository.
git pull upstream master
- Create a new branch for your modifications.
git checkout -b BRANCH_NAME
-
Make the desired modifications to the relevant modules.
-
Add the modified files to the staging area.
git add .
- Make sure all of the appropriate files have been staged. Note that all files listed in green will be included in the following commit.
git status
- Commit the changes with an appropriate description.
git commit -m "Description of commit"
- Push the commits to a branch on your fork of MCCD.
git push origin BRANCH_NAME
-
Make a pull request for your branch with a clear description of what has been done, why and what issues this relates to.
-
Wait for feedback and repeat steps 3 through 7 if necessary.
If your PR is accepted and merged it is recommended that the following steps be followed to keep your fork up to date.
- Make sure you switch back to your local master branch.
git checkout master
- Delete the local branch you used for the PR.
git branch -d BRANCH_NAME
- Pull the latest updates to the original repository, which include your PR changes.
git pull upstream master
- Push the commits to your fork.
git push origin master