Skip to main content
All CollectionsCompare and deploy metadataVersion control
A brief introduction to version control
A brief introduction to version control

What version control is, and how it benefits your team

Jason Mann avatar
Written by Jason Mann
Updated over 2 years ago

Version control is a well-established concept in most software languages and platforms, and is one of the key enablers for efficient Agile development. At its heart, version control focuses on one core concept: tracking changes to files over time.

Version control becomes an enabler for development teams to work faster and smarter by:

  • being a single ‘source of truth’ for the team

  • enabling parallel development streams by allowing developers to work on changes in isolation, without the environment changing underneath them

  • providing tools to identify and resolve file conflicts

  • maintaining a full audit trail for every stage of the development cycle

  • facilitating collaboration and code review

  • making it easy to maintain and deploy different versions of code across test, staging, and production environments.

Salesforce teams who use version control release higher quality code more frequently, introduce fewer bugs, maintain better reporting and visibility, and have a better ability to roll back changes.

This translates to a better relationship with their end users, and faster project delivery. As the Salesforce modules on Application Lifecycle Management put it: “Using version control is considered to be a general best practice for software development…and ensures a quality development process."

Picking a version control system

The first step to implementing version control is choosing which system to use. A few common types are Perforce, Subversion (SVN), Mercurial, and Git. The choice of system will have a big impact on the process and tools available to the team.

Luckily, it’s a simple choice for Salesforce development. In recent years, Git has established itself as the de facto version control system. Git is used by millions of developers around the world and is the recommended system for all Salesforce development teams.

Service providers

Although there are many services providers for Git-based version control, there are three clear market leaders:

All three provide a mature and effective platform for Salesforce development. Which provider to use will come down to personal preference and the specific needs of the team.

On-premise vs hosted

Most version control systems have the option of running either as a hosted service, where the provider manages the hosting and provision of the software for you, or running locally on your own systems, which is known as on-premise.

Hosted version control provides greater flexibility, stability, and ease of setup. On-premise has the advantage of more discrete data control, but that is offset against the additional cost, configuration, and infrastructure investment required to set up and maintain it. 

For the vast majority of Salesforce teams, the hosted version of a version control system is the better choice. The established Git providers are trusted by some of the largest companies in the world and have extremely robust data protection and uptime policies. If opting for an on-premise solution, it is worth considering the additional costs, and how access to hosted systems, such as Salesforce or Gearset, will be managed through corporate firewalls.

Gearset supports connections to both hosted and on-premise version control systems. You can connect these in the Source Control and Services screen within Gearset.

Did this answer your question?