To maintain a streamlined workflow and high-quality code, please follow these guidelines.
- Navigate to the original repository on GitHub.
- Click the "Fork" button at the top-right corner of the page.
- This will create a copy of the repository under your own GitHub account.
- Important: The default branch in your forked repository will be
dev
.
-
Clone your forked repository to your local machine:
git clone https://github.com/your-username/your-forked-repo.git cd your-forked-repo
-
Run:
npm install
This should install necessary packages needed for this project
- Add the original repository as an upstream remote to keep your fork up to date:
git remote add upstream https://github.com/LifeBluds/lb-backend.git
- Create a new branch for your feature or bug fix from the
dev
branch:git checkout -b feature-branch-name
- Open Vscode and make the necessary changes in your feature branch.
- Stage and commit your changes:
git add . git commit -m "Detailed description of the changes"
-
Before pushing your changes, ensure your local
dev
branch is up-to-date with the latest changes from the upstream repository:git checkout dev git fetch upstream git merge upstream/dev
-
If there are any merge conflicts, resolve them in vscode and commit the changes:
git add . git commit -m "Resolve merge conflicts"
-
Rebase your feature branch onto the updated
dev
branch:git checkout feature-branch-name git rebase dev
- Push your feature branch to your forked repository:
git push origin feature-branch-name
- Go to your forked repository on GitHub.
- Click the "Compare & pull request" button next to your feature branch.
- Ensure that the base repository is the original repository and the base branch is
dev
. - Provide a clear and descriptive title and description for your pull request.
- Click "Create pull request".
- Your pull request will be reviewed by the repository maintainers.
- Make any necessary changes as requested by reviewers.
- After the changes follow the same steps to push additional commits to your feature branch as needed:
git add . git commit -m "Address review feedback" git push origin feature-branch-name
If you have any questions or need further assistance, please open an issue in the repository.