A
A
Andrey Minisol2016-07-15 16:18:25
linux
Andrey Minisol, 2016-07-15 16:18:25

How to build work with git?

Good day, the question is as follows, how do you build work with git on large projects where more than 1 developer,
or rather, the question is the following, how do you build a hierarchy of branches?
how do you run autotests?
how do you build a project and roll it out to production?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
A
aol-nnov, 2016-07-15
@AmadeyMinisol

this is a personal matter for each team. you can, for example, git flow

C
cold147, 2016-07-15
@cold147

Github flow:
https://guides.github.com/introduction/flow/
https://habrahabr.ru/post/189046/

A
Albert Rashitov, 2016-07-21
@albert_rar

danielkummer.github.io/git-flow-cheatsheet/index.r...

U
ummahusla, 2016-07-15
@Antonoff

We switched to Git Flow, about 1.5 years ago, we regret that we did not do this earlier. Very comfortably.

T
TheML9I, 2016-07-27
@khaletskiy

feature branching like gitflow. For each new feature, a new feature_* branch from develop is branched. If several developers simultaneously implement a feature, then everyone can create their own additional branch and later add changes to the main branch of the feature.
When creating a pull request in Stash (maybe another system), a build is launched in TeamCity with autotests, as well as with unit tests for feature_, bugfix_, etc. branch prefixes. If all the tests passed, the build passed - a green check mark, approval from colleagues - Merge! in develop.
Next cut stable. Stabilization stage before release. After that, the tag is cut off and the production is released.

S
sinout, 2016-07-16
@sinout

Read here: nvie.com/posts/a-successful-git-branching-model

R
Roman Morozov, 2021-10-13
@Q_BASIC

Here I analyzed the best practices for working with git in Bitrix
here setting up git and gitignor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question