in Technology by

What is the common branching pattern in Git?

1 Answer

0 votes
by

The common branching pattern is based on the git-flow. It has two main branches i.e. master and development.

  • The master branch contains the production code. All the development code is merged into the master branch at some point in time.
  • The development branch contains the pre-production code. When the features are completed, they get merged to the master branch, generally through a CI/CD pipeline.

This model also has some supporting branches that are utilized during the development cycle:

  • Feature Branches/Topic Branches: They are used to develop new features for upcoming releases. It may branch off from the develop branch and must be merged back into the develop branch. Generally, these branches exist only in developer repositories, and not in origin.
  • Hotfix Branches: They are used for unplanned production release when there is a need to fix any critical bug immediately in the live prod version. They may branch off from master and must be merged back into develop and master.
  • Release Branches: They are used for the preparation of new production release. The release branch lets you do minor bug fixes and prepare metadata for release. They may branch off from development and must be merged back into master and develop.

Related questions

0 votes
    Explain the concept of branching in Git....
asked Oct 4, 2020 in Technology by Editorial Staff
0 votes
    Which key word is used to perform unconditional branching?...
asked Jan 18, 2021 in Technology by JackTerrance
+1 vote
    Which key word is used to perform unconditional branching in C Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    Efficient Utilization and Fast Deployment represents which pattern? A. Service Instance per Container B. Multiple Services per Host pattern C. Service Instance per Host...
asked Jan 10, 2023 in Technology by JackTerrance
0 votes
    Service Instance per Host pattern provides __________. A. Great Isolation B. Leverage AWS for Autoscaling and Load balancing C. Great Manageability D. All the options...
asked Jan 10, 2023 in Technology by JackTerrance
0 votes
    __________ is a recommended Model for Pattern Recognition in Unlabeled Data. A. Autoencoders B. CNN C. RNN D. Shallow Neural Networks...
asked Dec 26, 2022 in Technology by JackTerrance
0 votes
    What is the default date pattern in Talend Open Studio? MM-DD-YY DD-MM-YY DD-MM-YYYY YY-MM-DD...
asked Mar 24, 2021 in Technology by JackTerrance
0 votes
    Cassandra lightweight transactions (LWT) supports ______ pattern....
asked Jan 26, 2021 in Technology by JackTerrance
0 votes
    What is the reactor design pattern used in Node.js?...
asked Jan 25, 2021 in Technology by JackTerrance
0 votes
    What is Pattern matching enhancements in C#.Net?...
asked Dec 30, 2020 in Technology by JackTerrance
0 votes
    What is Pattern Matching in SQL?...
asked Dec 11, 2020 in Technology by JackTerrance
0 votes
    Which pattern collects & reports all exceptions to a centralized exception tracking service (a)Audit logging (b)Application logging (c)Distributed tracing (d)Exception tracing...
asked Oct 21, 2020 in Technology by Editorial Staff
0 votes
    Efficient Utilization & Fast Deployment represent which pattern __________________________________ (a)Service Instance per Host ... Host pattern (c)Service Instance per Container...
asked Oct 21, 2020 in Technology by Editorial Staff
0 votes
    Service Instance per Host pattern provides ________________ (a)Leverage AWS for Autoscaling & Load balancing. (b)Great Manageability (c)All the options (d)Great Isolation...
asked Oct 21, 2020 in Technology by Editorial Staff
0 votes
    Which of these represent the drawback of Multiple Services per Host pattern (a)faulty deployment (b)Difficult to limit resource utilization (c)Non- Dependency conflicts...
asked Oct 21, 2020 in Technology by Editorial Staff
...