Thank you for your interest in contributing to the Newfoundland Missing Persons App! This document provides guidelines and instructions to ensure a smooth contribution process.
Always maintain respect and understanding towards other contributors. Open source is about collaboration, and we want to foster a welcoming and inclusive environment.
-
Fork the Repository: Start by forking the repository on GitHub. This allows you to have your own version of the repository to work with.
-
Clone Your Fork Locally:
git clone https://github.com/{your github name}/LostInNL.git
cd LostInNL
- Set Upstream Remote: This helps to sync your fork with the original repository.
git remote add upstream https://github.com/PrinceDisant/LostInNL.git
- Switch to the Development Branch: Before you start working, switch to the development branch as it's the main branch for all contributions.
git checkout development
- Sync and Update Your Fork: Before you start working, always pull the latest changes from the main repository to avoid conflicts later.
git pull upstream main
- Create a New Branch for Your Feature: Always create a new branch for your changes, branching off from the development branch.
git checkout -b feature/your-feature-name
Use meaningful branch names like feature/add-search
or fix/header-bug
.
- Code Style: Adhere to the coding style and standards used throughout the project.
- Commit Messages: Write clear and concise commit messages describing the changes.
- Atomic Commits: Make small, focused commits. This makes it easier to review and track changes.
- Update & Sync: Regularly sync your branch with the main repository to get the latest updates.
- Push Changes to Your Fork:
git push origin [branch-name]
-
Open a Pull Request (PR): Go to your fork on GitHub and create a PR against the
development
branch of the original repository. -
Describe Your Changes: In the PR, explain the changes, why you made them, and any other relevant details.
-
Wait for Review: Maintainers will review your PR. Address any feedback or changes they request.
Regularly fetch and merge changes from the main repository to stay updated:
git pull upstream development
git push origin development
If you're unsure about something, open an issue in the main repository or reach out to the maintainers. It's always better to clarify doubts early on.
Thank you for considering contributing to the Newfoundland Missing Persons App. Your contributions, big or small, significantly impact the community and further the project's mission.