Skip to main content

Source Control

Work In Progress
This page is a work in progress, accuracy of the content is not guaranteed and is subject to change at any time.

Source control is an essential tool during the development lifecycle. It allows for the tracking of changes to code, and the ability to revert to previous versions if required. We recommend the use of Git for source control. There are a variety of Git hosting services available, such as GitHub, GitLab, and Bitbucket. The following guide does not cover the specifics of Git, but rather the concepts of source control and how they can be applied to Salesforce development.

info

Internally at Seven20, we use Bitbucket. Any pipeline code provided will be written with Bitbucket in mind, however the code can be easily adapted to work with other Git hosting services.

Why use source control?

Source control provides a number of benefits to a development team:

  • Traceability: See the history of changes, including who made the change, when it was made, and why it was made; this improves the ability to track down issues and understand the evolution of a codebase
  • Branching and merging: Easily separate different pieces of work, allowing parallel development without affecting other environments or work; these can then be safely merged back into the main codebase
  • Revert: Easily roll back to a previous version if issues are found
  • Peer Review: Facilitates review of functionality before changes are made to the main codebase, thus improving quality, reducing bugs and promoting knowledge sharing