# Git history vs a code snapshot: why history matters

Canonical: https://refer.sourcex.si/guides/does-git-history-matter
Last updated: 2026-10-20

Git history matters because commits, pull requests and review comments record how code changed and why, which a snapshot cannot show. For a data license, full history is the more useful asset. A fractional CTO should preserve it before any migration, then introduce qualifying companies to SourceX.

## Does git history matter for a data license?

Yes. A code snapshot shows what the software is today; git history shows how it got there. Commits, pull requests, review comments and merge decisions record each change, who proposed it, who questioned it and why it was accepted or reversed. For AI developers training and evaluating coding agents, that sequence is closer to real engineering work than any single version of a repository.

A fractional chief technology officer (CTO) often sees the moment this history is at risk: a platform move, a monorepo consolidation, a squash-and-import, or an acquisition clean-up. Each can flatten years of commits into a single "initial import."

This page explains what history adds, what to preserve before a migration, and how to raise it with a company before introducing it to SourceX.

## What does history hold that a snapshot cannot?

| Artifact | What it shows | Lost when squashed or snapshotted |
|---|---|---|
| Commit sequence | Incremental steps, reverts and fixes in order | Becomes one commit |
| Commit messages | The author's stated intent | Replaced by a generic message |
| Pull requests | Proposal, discussion and merge decision | Stay in the old hosting platform |
| Review comments | Reviewer objections and the author's responses | Stay in the old platform |
| Issue links | Which bug or request a change addressed | Reference numbers become dead links |
| Branch and tag history | Release lines and hotfixes | Often not migrated |
| CI results | Which changes passed or broke the build | Retained only if the old CI is archived |

The key pairing is change plus reason plus outcome. A snapshot cannot supply any of the three. The same logic makes [test suites linked to the changes they verify](/data-types/test-case-data-ai-training) valuable, since a test is an objective check on a change.

## When is history most at risk?

Raise the point when a technical event is already scheduled.

| Event | Typical risk | What to ask the engineering lead |
|---|---|---|
| Hosting platform move | Pull requests and comments do not travel with the repository | Is the old platform's review data being exported or just git objects? |
| Repository consolidation into a monorepo | Histories are rewritten or truncated | Will the original histories be archived as is? |
| Squash on import | Years collapse into one commit | Is a full-history mirror kept somewhere? |
| Acquisition integration | Acquired code is re-created under the buyer's structure | Where does the acquired company's original repository live? |
| Vendor or agency handover | Code arrives as a zip | Does the handover include history? |
| Team departure | Local clones and personal forks vanish | Is the main repository mirrored and protected? |

If the history is already gone, say so; the company may still qualify through other systems. The question is what exists today and who can export it.

## What to preserve before a migration

A short sequence works for most engineering teams:

1. Take a full mirror clone of each repository, including all branches and tags, before any rewrite.
2. Export pull request and review data from the hosting platform using its documented export or API, and store the output next to the mirror.
3. Archive the issue tracker and its links to commits, since references are what connect the change to its reason.
4. Archive CI logs or at least the pass-fail results for released versions.
5. Record who owns each archive and where it lives, so an inventory can list it later.
6. Keep the old platform account alive until the export is verified, not just requested.

None of this requires giving a copy to anyone outside the company. A company can list these archives as systems and years of history with the [data inventory builder](/tools/data-inventory-builder), which helps list systems without sharing code.

## Common mistakes

| Mistake | Why it hurts | Fix |
|---|---|---|
| Treating a code freeze snapshot as the archive | No reasons or outcomes survive | Mirror full history and review data |
| Squashing to "clean up" before moving | Authorship and sequence are erased | Move history intact; squash only in new work |
| Exporting git objects but not pull requests | Discussion and approvals vanish | Export review data separately |
| Letting the old platform subscription lapse | Export window closes | Extend until verified |
| Ignoring secrets committed in past | Credentials sit in history and create risk | Rotate any exposed credentials and scrub where needed with counsel and security input |
| Assuming the company owns all the code | Contractor or client code may belong to others | Check assignment terms and customer contracts |

## What rights questions apply to code history?

Code history contains more than the company's own code. Check:

- Contributor agreements: did employees and contractors assign their work to the company?
- Client-owned work: agency and consulting repositories often belong to the client.
- Open-source components: license terms attach to the code that was included.
- Secrets and personal data embedded in commits or comments, which need removal or redaction.
- Customer data accidentally committed in test fixtures.

A company that mainly writes code for clients without consent is a red flag. A product company with its own repositories, a long history and clear assignments is a strong candidate. The [PII redaction matrix](/resources/pii-redaction) helps frame what needs removing from embedded data.

## What to say to a CTO or founder

> "Before the platform move, make sure the full history and review data are mirrored. Some companies license that history to SourceX for a one-time payment, keep ownership, and approve scope and price. If it is useful, I can introduce the team that runs the process."

## How the introduction works

You introduce; the company and SourceX run the rest. You never see or hold code.

1. Register and send the founder or CTO your referral link, or use the referral form.
2. The company applies and SourceX checks headcount, repository age, system breadth and rights.
3. The company inventories repositories, review tools, trackers and CI, with the years each covers.
4. One net payout and the license terms are agreed before any SourceX review.
5. Once the company is deal-ready, SourceX typically responds within about two weeks.
6. After signature, secrets and personal data are redacted under the agreed rules and the data is delivered.
7. A reward becomes payable after SourceX has paid the referred company under its signed agreement and the payout conditions in the program terms are met, including finance approval and your tax and payment details.

## How rewards work for a fractional CTO

Partners earn the greater of $50,000 plus 5% and 15% of the compensation SourceX actually pays the company you refer, with no cap. A reward becomes payable after SourceX has paid the referred company under its signed agreement and the payout conditions in the program terms are met, including finance approval and your tax and payment details. The reward is calculated on the actual supplier payout and does not reduce the company's price. Check your client agreements for any disclosure requirement before registering. More on the role is at [referral opportunities for fractional CTOs](/for/fractional-ctos).

## When it is not worth raising

Skip it for a company under the size baseline, a team that writes only client-owned code, or one that has already licensed the same code history for AI training. Related record types like [PSA ticket histories](/resources/psa-ticket-history-report) fit better when the client is a managed service provider rather than a software product firm.

## Next step

Ask one client whether the full commit and review history will survive their next platform change. If it will and they might consider a license, [register as a partner](/register), or have the sponsor apply at [sourcex.si/apply](https://sourcex.si/apply).
