Answer the question
In order to leave comments, you need to log in
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
this is a personal matter for each team. you can, for example, git flow
Github flow:
https://guides.github.com/introduction/flow/
https://habrahabr.ru/post/189046/
We switched to Git Flow, about 1.5 years ago, we regret that we did not do this earlier. Very comfortably.
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.
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 questionAsk a Question
731 491 924 answers to any question