Contribution Workflow
This document outlines the workflow for contributing to pyremap
.
Step 1: Fork the Repository
Navigate to the pyremap repository.
Click the “Fork” button in the top-right corner to create your own copy of the repository.
Step 2: Clone Your Fork
Clone your forked repository to your local machine:
git clone https://github.com/your-username/pyremap.git
Navigate to the project directory:
cd pyremap
Step 3: Create a Feature Branch
Create a new branch for your changes:
git checkout -b your-feature-name
Step 4: Use a Worktree (Alternative to Step 3)
Add a new worktree for your feature branch:
git worktree add ../your-feature-name
Navigate to the new worktree directory:
cd ../your-feature-name
Note: This allows you to work on multiple branches simultaneously in separate directories.
Step 5: Make Changes
Implement your changes in the codebase.
Write or update tests to cover your changes.
Update documentation if necessary.
Step 6: Commit Your Changes
Stage your changes:
git add .
Commit your changes with a descriptive message:
git commit -m "Add feature: your-feature-name"
Note: Please commit often and in small pieces. You can always
git rebase
later to consolidate pieces of your work into fewer commits, but breaking commits into smaller pieces is very difficult.
Step 7: Push Your Changes
Push your feature branch to your fork:
git push origin your-feature-name
Step 8: Submit a Pull Request
Navigate to your fork on GitHub.
Click the “Compare & pull request” button.
Provide a detailed description of your changes.
Submit the pull request.
Step 9: Address Feedback
Review comments from maintainers on your pull request.
Make necessary changes and push updates to your feature branch:
git push origin your-feature-name
Additional Resources
Refer to the Contribution Guidelines for more details.
For help with Git, see the Git documentation.