Git: Branching

  • Branch is an independent set of commits
  • What makes Git so popular (it fits best to Agile and DevOps)
  • Branch can be an abstraction for a line of development:
    • master (or main) is the first and default one, used to keep the stable and tested version of the project
    • develop is the place where features come together before merging to master
    • feature_X is a branch for a single feature "X"
  • Branch can be temporary:
    • To have a change request
    • To develop an independent feature

Git branches