Version control
Version control is a system, most commonly Git, that records every change to files such as code, workflows and configuration, so teams can review changes, collaborate and roll back to earlier versions.
Also called: git, source control, VCS
Version control is a system, almost always Git today, that records every change to files such as code, workflow definitions, SQL models and prompts, so a team can review changes, work in parallel and roll back to any earlier version. In GTM engineering it is the difference between a stack you can trust and a stack where nobody knows why routing changed last Tuesday.
How it works
Files live in a repository. Each saved set of changes is a commit, with an author, a timestamp and a message explaining why. The typical workflow:
- Branch: create a separate line of work for a change, such as "new lead scoring weights."
- Commit: save small, described changes as you go.
- Pull request: propose merging the branch, so a teammate can review the diff line by line.
- Test: run checks or try the change in a staging environment.
- Merge and deploy: ship to production, ideally automatically from the main branch.
- Roll back if needed: revert the commit and redeploy the previous version.
What belongs in Git for a GTM team: serverless function code, dbt models, exported n8n workflows, AI system prompts and evaluation sets, CRM configuration exports and documentation of field definitions.
Example
Say an operator edits a lead routing workflow on a Friday to add a new territory. On Monday, sales reports that enterprise leads have been going to the wrong queue all weekend.
Without version control, someone reads through the live workflow trying to spot the difference, while leads keep misrouting. Assume that takes four hours and 30 enterprise leads go to the wrong rep.
With version control, the team opens the commit history, sees the exact change in a diff (a condition order swapped), reverts it in minutes and redeploys. Then they fix the change properly on a branch, with a review. If one misrouted enterprise lead is worth $2,000 in expected pipeline, catching it in 15 minutes instead of four hours saves far more than the setup ever cost.
When it matters and when it doesn't
Version control matters as soon as more than one person edits revenue-critical logic, or as soon as an outage would cost real pipeline. It is essential for code, data models and prompts that run automatically.
It matters less for one-off scripts, early prototypes and settings that live only inside a vendor UI with no export. Even there, a short change log beats nothing. Pair version control with observability so you can link a spike in errors to the change that caused it.
Common mistakes
- Committing API keys or credentials into the repository.
- Writing commit messages like "fix" that explain nothing six months later.
- Editing production workflows directly in the tool and never syncing back to Git.
- Making huge commits that bundle ten unrelated changes, so reverting one breaks the others.
- Skipping review on changes to routing, scoring or billing logic.
FAQ
Why does a GTM team need version control?
GTM stacks now include code, workflow exports, SQL models and AI prompts that drive real revenue processes. Version control shows who changed what and when, lets someone review a change before it ships and makes it easy to roll back when a change breaks routing or scoring.
Can you version control no-code workflows?
Often, yes. Tools such as n8n export workflows as JSON that can be committed to Git, and some platforms offer built-in versioning or environments. Where a tool has no export, keep a change log and screenshots of critical configuration at minimum.
What is the difference between Git and GitHub?
Git is the version control software that tracks changes in a repository. GitHub is a hosting service for Git repositories that adds pull requests, reviews, issues and automation. GitLab and Bitbucket are similar hosts.
Related
Used in these articles
- ArticleClaude Code for Marketers: A Hands-On Guide to the Terminal Agent
- ArticleVibe Coding for Marketers: What to Build, What to Skip and How to Stay Safe
- ArticleWhat Good GTM Engineering Work Looks Like: Ten Projects to Learn From
- Articlen8n for GTM Teams: Workflows Worth Building First
- ArticleHubSpot Lead Scoring: Set Up Fit and Engagement Scores That Sales Trusts
- ArticleLLM Prompt Patterns for Sales and Marketing Ops