Branching strategy

Branching is a very useful feature provided by Git. It helps to develop multiple features in parallel. Branching can be useful to define environment specific codes such as develop, test, stage, and production. Usually, the environment to Git branch mapping will be, for example, the code for the development environment stored in the develop Git branch; for the test environment, we use the test Git branch, and so on. For the production environment, we use the master branch, as it is the first default branch created when we create any Git repository.

Let's see how we can create a branch using the web UI:

  1. Log in to GitLab.
  2. Go to your repository, Sample, that we created in the Creating your first project in GitLab section: ...

Get DevOps for Salesforce now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.