website - https://sites.google.com/view/project-grover/home
Repository structure and information on directories
## Directory Overview ### **`technical/`** - **Purpose**: The `technical` directory houses all the technical documentation, codebase, and resources related to the development of the project. This is the core directory where all technical work is organized and managed. - **Contents**: - **sub-systems**: code and technical documents for each sub-systems - **Technical Documentation**: Manuals, API documentation, architecture diagrams, and other technical resources.Instructions on how to push and pull commits to the repository
- Getting Started
- Creating a New Branch
- Pushing Changes
- Pulling Changes
- Submitting a Pull Request
- Branching Strategy
- Pull Request Review Process
Before you start working on this project, ensure you have cloned the repository to your local machine:
git clone https://github.com/meh-maw/project-grover.git
cd repository-nameEnsure you are working in a branch other than main before making any changes.
To keep the main branch stable and clean, all work should be done in separate branches. Follow these steps to create a new branch:
- Fetch the latest changes from the remote repository:
git fetch origin- Create a new branch and switch to it:
git checkout -b <your-branch-name>Replace <your-branch-name> with a meaningful name related to the feature or bug fix you are working on.
- Push your branch to the remote repository:
git push -u origin <your-branch-name>Once you have made changes in your branch, follow these steps to commit and push them:
- Stage the changes you want to commit:
git add .- Commit your changes with a meaningful message:
git commit -m "Your commit message"- Push your changes to the remote branch:
git push origin <your-branch-name>Before starting new work or when you want to integrate the latest changes from the main branch into your branch, you should pull the latest updates:
- Switch to the
mainbranch:
git checkout main- Pull the latest changes from the remote
mainbranch:
git pull origin main- Switch back to your branch:
git checkout <your-branch-name>- Merge
maininto your branch to incorporate the latest changes:
git merge mainWhen you are ready to submit your changes for review, follow these steps:
- Push your branch to the remote repository:
git push origin <your-branch-name>- Create a pull request on GitHub:
- Go to the repository on GitHub.
- Click on the "Compare & pull request" button.
- Add a title and description for your pull request.
- Ensure the base branch is
mainand the compare branch is your branch. - Click "Create pull request".
We follow a branching strategy where all development is done on branches other than main. This helps keep the main branch stable and deployable. Each feature, bug fix, or task should have its own branch.
- Feature Branches: Branches for new features (e.g.,
feature/new-login-page). - Bug Fixes: Branches for bug fixes (e.g.,
bugfix/fix-login-error). - Hotfixes: Quick fixes that need to be merged into
mainimmediately (e.g.,hotfix/security-patch).
All pull requests will be reviewed by at least one other team member before being merged into the main branch. Here's the review process:
- Create the pull request as described above.
- Wait for a reviewer to approve your changes. You may receive feedback or requests for changes.
- Make any requested changes and push them to your branch.
- Once approved, the reviewer will merge the pull request into
main.
- Do not push directly to
main. Always work in a branch and submit a pull request. - Keep your branch updated with
mainto avoid conflicts during the merge process. - Review other team members' pull requests to help maintain code quality.