Code Branching Strategy

From GM-RKB
Jump to navigation Jump to search

A Code Branching Strategy strategy that software development teams adopt when writing, merging and deploying code when using a version control system.



References

2022

  • https://www.flagship.io/git-branching-strategies/
    • QUOTE: Branches are primarily used as a means for teams to develop features giving them a separate workspace for their code. These branches are usually merged back to a master branch upon completion of work. In this way, features (and any bug and bug fixes) are kept apart from each other allowing you to fix mistakes more easily.

      This means that branches protect the mainline of code and any changes made to any given branch don’t affect other developers.

      A branching strategy, therefore, is the strategy that software development teams adopt when writing, merging and deploying code when using a version control system.

      It is essentially a set of rules that developers can follow to stipulate how they interact with a shared codebase.

      Such a strategy is necessary as it helps keep repositories organized to avoid errors in the application and the dreaded merge hell when multiple developers are working simultaneously and are all adding their changes at the same time.

2021

  • https://www.atlassian.com/agile/software-development/branching
    • QUOTE: ... Branching allows teams of developers to easily collaborate inside of one central code base. When a developer creates a branch, the version control system creates a copy of the code base at that point in time. Changes to the branch don't affect other developers on the team. This is a good thing, obviously, because features under development can create instability, which would be highly disruptive if all work was happening on the main code line. But branches need not live in solitary confinement. Developers can easily pull down changes from other developers to collaborate on features and ensure their private branch doesn’t diverge too far from the main. ...