encyclopegia.org

Branching (version control)

Branching, in version control and software configuration management, is the duplication of an object under version control (such as a source code file or a directory tree).[src] Each object can thereafter be modified separately and in parallel so that the objects become different.[src] In this context the objects are called branches.[src] The users of the version control system can branch any branch.[src] Branches are also known as trees, streams or codelines.[src] The originating branch is sometimes called the parent branch, the upstream branch (or simply upstream, especially if the branches are maintained by different organizations or individuals), or the backing stream.[src]

Branching, in version control and software configuration management, is the duplication of an object under version control (such as a source code file or a directory tree).[src] Each object can thereafter be modified separately and in parallel so that the objects become different.[src] In this context the objects are called branches.[src] The users of the version control system can branch any branch.[src] Branches are also known as trees, streams or codelines.[src] The originating branch is sometimes called the parent branch, the upstream branch (or simply upstream, especially if the branches are maintained by different organizations or individuals), or the backing stream.[src] ==Trunk== Child branches are branches that have a parent; a branch without a parent is referred to as the trunk or the mainline.[src] The trunk is also sometimes loosely referred to as HEAD, but properly head refers not to a branch, but to the most recent commit on a given branch, and both the trunk and each named branch has its own head.[src] The trunk is usually meant to be the base of a project on which development progresses.[src] If developers are working exclusively on the trunk (so called trunk-based development), it always contains the latest cutting-edge version of the project, but therefore may also be the most unstable version.[src] Another approach is to split a branch off the trunk, implement changes in that branch and merge the changes back into the trunk when the branch has proven to be stable and working.[src] Depending on development mode and commit policy the trunk may contain the most stable or the least stable or something-in-between version.[src] Other terms for trunk include baseline, mainline, and master, though in some cases these are used with similar but distinct senses – see .[src] Often main developer work takes place in the trunk and stable versions are branched, and occasional bug-fixes are merged from branches to the trunk.[src] When development of future versions is done in non-trunk branches, it is usually done for projects that do not change often, or where a change is expected to take a long time to develop until it will be ready for incorporating in the trunk.[src] ==Merging== Branching generally implies the ability to later merge or integrate changes back onto the parent branch.[src] Often the changes are merged back to the trunk, even if this is not the parent branch.[src] A branch not intended to be merged (e.g.[src] because it has been relicensed under an incompatible license by a third party, or it attempts to serve a different purpose) is usually called a fork.[src] ==Distributed revision control== ==References==[src]

26 sentences · 26 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Branching (version control)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/branching-version-control. Accessed 29 November 2026.

Chicago

"Branching (version control)." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/branching-version-control.

APA

encyclopegia.org. (2026). Branching (version control). Retrieved November 29, 2026, from https://encyclopegia.org/wiki/branching-version-control

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Take Over Control

stub · references available

automatic frequency control

stub · references available

access control

stub · references available

Media Control Interface

stub · references available

Need to Control

stub · references available

Active Body Control

stub · references available

control key

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1378910185 · 0.5 · snapshot enwiki-001378910185

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.