This document will guide you through our development workflow. It includes instructions on how to use our version control system, how to create and manage branches, how to handle issues, and how to submit your code for review.
We use Git for version control. All our code repositories are hosted on GitLab.
git clone
command followed by the URL of the repository.git pull origin main
command.See Branch, Merge, Release Strategy.
To create a new branch, use the git checkout -b [branch-name]
command.
Master Branch: This branch represents the official release history. It’s meant to be stable, with new commits only coming from release branches. Every commit on this branch should be a new release, involving incrementing the version numbers and creating a tag.
Develop Branch: This is the development branch where the latest developments integrate. This is where developers collaborate and is the core of the GitFlow model.
Feature Branches: These branches are used to develop new features for the upcoming or a distant future release. When the feature is complete, it’s merged into the develop branch. Feature branches usually originate from the latest state of the develop branch.
Release Branches: These branches are used to prepare for a new production release. They allow for last-minute dotting of i’s and crossing t’s. When the release is ready to ship, it gets merged to master and tagged with a version number. In addition, it should be merged back into develop, which may have progressed since the release was initiated.
Hotfix Branches: These branches are used to quickly patch production releases. This is the only branch that should fork directly off of master. As soon as the fix is complete, it should be merged into both master and develop (or the current release branch), and master should be tagged with an updated version number.
We track all our tasks, bugs, and feature requests using GitLab Issues. Each issue is assigned to a specific person.
When you start working on an issue:
Once you’ve completed your work on a branch, you’ll need to submit a merge request (MR) for code review.
git push origin [branch-name]
command.Remember to always pull the latest changes from the main branch before starting to work on a new feature or fix.
Please don’t hesitate to ask if you have any questions about our workflow. We’re here to help!