We use Git and host our code on GitHub. To collaborate, you will need to create a GitHub account and install Git on your machine. Once your setup you can then follow the steps outlined below to contribute to the model.

Step 1: After signing into GitHub, you need to create your own remote repository of the IVI model. Click the "Fork" button in the upper right corner of the IVI-RA Github page. When asked "Where should we fork this repository?" select your username.

Step 2: Use the command line to create a directory where you would like your local repository to live, and navigate to this directory.

Step 3: Create a local repository by typing the following command into the command line:

git clone https://github.com/[github-username]/IVI-RA.git

Step 4: Use the command line to navigate to the local IVI-RA directory.

Step 5: In order to make it easier to Push your local work and pull changes made by others to the IVI-RA code type the following command into the command line:

git remote add upstream https://github.com/InnovationValueInitiative/IVI-RA.git

Step 6: Before editing your local copy of the IVI-RA code, make sure you have the latest version of the code using the following three commands:

Step 7: Create a new branch on your local machine. Branches are a way to organize your project. To create a new branch type the following command into the command line:

git checkout -b [new-branch-name]

Step 8: After making changes to your local IVI-RA repository, commit your changes to the central IVI-RA repository. To add a new file type the following command into the command file:

git add [filename]

To commit the added file or an edited file type the following command into the command line:

git commit -m "[description-of-the-changes-you-made]"

To find all files that were edited or new files that were created, but not yet committed, type the following command into the command line:

git status

Step 9: Periodically check whether the branch created in Step 7 is in sync with changes made by other contributors by fetching upstream and merging upstream master into your branch:

git fetch upstream
git merge upstream/master

If the changes you made to your local branch are in the same section as changes made by other contributors, you may need to resolve conflicts.

Step 10: If the code is ready to be reviewed by other contributors, make a final commit and push your local branch to your remote repository:

git push origin [new-branch-name]

Step 11: Using the GitHub user interface, open a pull request.



InnovationValueInitiative/IVI-RA documentation built on Oct. 20, 2020, 10:02 p.m.