Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Reset

1 post tagged #ветки: articles, how-tos, projects and jobs from the portal's IT professionals.

Редакция КоммитРедакция портала
commit 87c4fed · 15 days ago

🌐 Machine-translated from Russian. Show original

In this part:

Why negotiate branches

When more than one person works in the repository, chaos arises without rules: there is unfinished code in main , no one knows what's currently on sale, and the release turns into a "glue" of a dozen branches on the last night.

The branching strategy answers three questions:

  1. Where does stable code lie?
  2. Where is the development of the new task taking place?
  3. How does the code get to the product?

Three strategies that work

GitHub Flow — the simplest

  • There is one long-lasting branch of main — it is always ready to be displayed.
  • Each problem is a short branch of feature/... from main.
  • Ready → merge request → review → merge into main → automatic deployment.

Suitable for web services and teams with CI/CD, where they post frequently.

GitLab Flow — with environments

The same as GitHub Flow, plus environments or release branches:

  • main → automatically to the test bench;
  • production (or release/2026.11) → to the product; the code is entered there by merging from main after verification.

Suitable when there is acceptance between 'ready' and 'on prod': internal systems, 1C, banking integrations, scheduled display windows.

Trunk-based — for mature teams

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up