Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Latest commit

 

History

History
24 lines (18 loc) · 1.3 KB

GIT-WORKFLOW.md

File metadata and controls

24 lines (18 loc) · 1.3 KB

Documentation :: Git branching model

  Created by: Constantine Nikolaou
  Last modified on: March 29, 2020

Description

In order to streamline our software development process, make it easier to work with other developers and to deploy to staging and production environments, we use the following simple git branching model.

Git branches' naming convention

  • master: main staging deployment branch
  • feature-name: developer specific and personal branch that is originally branched out of master branch
  • tag-release: tags are used to label production releases before deployment from master branch

Workflow

  1. Developer checks out a new branch from master branch, for instance: stripe-implementation
  2. Developer starts working on his/her features using the new branch
  3. Once work is complete, a git rebase from master branch is needed to iron out all possible conflicts
  4. A merge request is then created on GitLab against master branch from stripe-implementation
  5. After code-review and accepting the merge request, the changes are merged onto master for deployment on a staging server(s)
  6. If the code is at a shipping stage, a tag is created from master branch with a version number and message indicating the release number. For example: git tag tag-name -m 'message associated with the tag'