OPEN SOURCE PROJECT THAT PAYS ROYALTIES TO IT'S CONTRIBUTERS
Contributing to the original repository after you've made changes in your fork involves a few steps. Here's a detailed guide to help you through the process:
Before contributing, make sure your fork is up-to-date with the original repository to avoid merge conflicts.
-
Add the original repository as a remote (if not already done). This remote is typically named
upstream
:git remote add upstream https://github.com/apipulse/brbhr-frontend
-
Fetch the latest changes from the original repository:
git fetch upstream
-
Switch to your main branch (assuming it's named
main
ormaster
):git checkout main
-
Merge the changes from the original repository's main branch into your fork:
git merge upstream/main
-
Push the updates to your fork:
git push origin main
It's a good practice to create a new branch for each set of changes you plan to contribute.
-
Create and switch to a new branch (name it according to the feature or fix you're working on):
git checkout -b feature-branch-name
-
Implement your changes, enhancements, or fixes in this branch.
-
Add and commit your changes:
git add . git commit -m "Detailed commit message"
-
Push the feature branch to your fork:
git push origin feature-branch-name
- Go to the original repository on GitHub.
- You'll likely see a prompt to create a pull request for your new branch. If not, go to the "Pull requests" tab and click "New pull request".
- Set the base repository as the original repository and the base branch to which you want to contribute (usually
main
). - Set the head repository as your fork and the compare branch as your feature branch.
- Fill in the pull request details: give it a meaningful title, describe the changes, and mention any related issues.
- Submit the pull request.
After submitting the pull request, the repository maintainers will review your changes. Be responsive to feedback:
- If requested, make additional changes and push them to your feature branch.
- Engage in discussions and answer any questions related to your pull request.
After your pull request is merged, you can delete your feature branch:
-
Switch to your main branch:
git checkout main
-
Delete the feature branch locally:
git branch -d feature-branch-name
-
Delete the feature branch from your fork:
git push origin --delete feature-branch-name
Remember, these steps are a general guideline. Some projects may have specific contributing guidelines, so always check the project's README
or CONTRIBUTING
files for any project-specific steps or requirements.