This document will walk you through the steps of setting up your computer for contributing to the FRMA Ontology. Before you start, be sure to check our open issues or open a new issue.
-
Fork the FRMA-Ontology/Ontology repository on GitHub.
-
Rename your fork of the repository on GitHub to
FRMA-Ontology
(otherwise it will just be calledyourusername/Ontology
, which doesn't adequately describe the repository.) -
Clone your fork of the repository, (i.e. 'yourusername/FRMA-Ontology
). Use
Clone with SSHfrom the
Clone or download` dropdown on GitHub with the following terminal command:
git clone [email protected]:yourusername/FRMA-Ontology.git
- Navigate into the
FRMA-Ontology
directory (i.e.cd FRMA-Ontology
) and add theupstream
remote to the repository:
git remote add upstream [email protected]:FRMA-Ontology/Ontology.git
This enables you to pull the latest upstream changes. You can ensure this worked correclty by running git remote show
. You should see entries for both origin
and upstream
.
- Create and checkout a
dev
branch:
git branch dev
git checkout dev
Now you can start developing features!
To commit your changes, do the following steps:
- Check the status of your changes
You can view the status of your latest changes using the following command:
git status
- Stage your changes for the next commit
You can stage all your changes for the next commit with the following command:
git add .
- Commit your changes
Commit your changes with an inline message with the following command:
git commit -m "Fixed type in ImageOntology.rdf"
- Push your changes
You can push your commited changes to your dev
branch with the following command:
git push origin dev
-
Navigate here to open a new pull request into the FRMA-Ontology/Ontology GitHub repository
-
Click
Compare across forks
and select you fork (i.e.yourusername/FRMA-Ontology
) from the dropdown -
Make sure that you're opening your PR from your
dev
branch into thercos/observatory
dev
branch -
Reference the GitHub issue inside the pull request comment with the GitHub issue number
-
Click
Create Pull Request
and your code will be reviewed by an administrator.