Export your GitHub and GitLab history before you cancel.

A git clone keeps your code but not the pull requests, reviews, issues or test runs. GitHub deletes test logs after 90 days by default. Companies that license this history are typically paid $50K to $2M, with no fees. See your range before you export anything.

By Work Data Lab · How we write and check

See what my records are worthFree. No email needed to see your range.
  • $50K to $2Mtypical payout per company
  • $0fees or upfront cost, paid when a lab pays
  • 7 daysbefore GitHub deletes an organization export file
  • 90 dayshow long GitHub keeps test logs by default

How do I export everything from GitHub and GitLab?

No single button gets it all. Use the platform's own export, copy the wikis and large files, and pull the rest through the API.

A pull request is a change others review before it goes in (GitLab calls it a merge request). The API lets a script read these records, using a token your admin makes and can switch off.

MethodWhat you getWhat it misses
Plain copy of the code (git clone --mirror), by anyone who can read the repoEvery branch, tag and commit.Pull requests, issues, reviews, wikis and large files.
GitHub organization export (an organization owner, with a token)Repos plus what GitHub calls "selected metadata", such as issues and pull requests.Large files, Discussions and packages. Must be under 20 GB. Deleted after 7 days.
GitLab project export (a Maintainer or Owner)Code, wiki, issues, merge requests with comments, reviewers and approvers, large files, boards.Test (CI) job logs, links from issues to merge requests, CI variables. File removed in about 24 hours.
Self‑managed GitLab backup (your server admin)Database, repos, large files, wikis, uploads, CI job logs.Config and secrets files, which you back up on their own.
API or our connectors (your admin, with a read‑only token your team controls)What the others miss: links, review threads, test runs while they still exist.Runs that GitHub or GitLab already deleted.

Which export gets what.

GitHub Docs and GitLab Docs, checked 20 Nov 2026.

You do not have to do this alone

Our team does the export work with your admin. The steps below are here so you know what is involved.

Is our GitHub and GitLab history worth money?

Often, yes. AI labs license years of real engineering work. Buyers such as Troveo say full history, code review and linked issues matter most.

PeopleStarting range
50 to 100$50K to $107K
100 to 200$50K to $157K
200 to 500$79K to $249K
500 to 1,000$113K to $356K
1,000+$181K to $570K

Indicative, from our estimate (software and other companies). The range moves with the tools you add, years of records and records special to your trade.

What moves the value

  • Years of commit history
  • Pull requests with real review threads
  • Issues linked to the fix
  • Tests and CI setup
  • Design docs and postmortems in wikis
Illustrative

Forks, copied libraries, generated code and bot pull requests add little.

  • You are paid when a lab pays, usually 30 days to 6 weeks after the sale.
  • Most licenses are not exclusive, so you can be paid more than once.
  • We check that a lab wants the data before we ask for a full export.
Read what other buyers say they want
BuyerWhat it says it wantsWhat else it says
TroveoFull commit history, pull requests and code review, linked issues and CI setup.It says to export every branch, review and issue before subscriptions lapse.
Turing (Project Lazarus)It names GitHub and GitLab. It wants source code, reviews, tickets and the history of each change.It says its license is a 6-month exclusive.
SimpleClosure (AssetHub)Repos, docs and tests.It says you start by connecting a GitHub repo.
Scale AI (SWE‑Bench Pro paper)Engineering repos bought from startups.The paper says they were used to build private coding tests.

Company claims, from each company's own pages or paper.

Troveo, Turing and SimpleClosure websites, and arXiv 2509.16941, checked 20 Nov 2026.

Troveo says: "A snapshot of source code with no history is worth little to a lab."

Public coding tests such as SWE-bench are built from a real GitHub issue, the pull request that fixed it, and the test that proves it. So a buyer wants the issue, the fix and the test kept together.

Before you sign anything exclusive, read before you sign a data offer. For more on value, read sell source code to AI, what company data is worth and who buys company data.

How do we keep this safe?

You choose which repos go in. We remove personal details and the secrets we find, and you check a cleaned sample first.

GitHubCommit 9f3c2e1

Author: Priya Nair <priya@example-co.com>. Fix refund retry. Temp key sk_test_EXAMPLE for staging.

As writtenWhat a lab sees
Example

What a lab can license

  • Code you own, with full history
  • Pull requests and review comments
  • Issues linked to fixes
  • Wikis, design docs and postmortems
  • CI setup and test files
  • Release notes

What stays out

  • Passwords, keys and tokens
  • Customer data in test files and logs
  • Client code built under contract
  • Open source and copied libraries
  • Export-controlled repos
  • Security and HR repos
  • Repos for products you sold or licensed to others

Secrets in old commits

GitGuardian, a security firm, says its 2026 study found passwords, keys or tokens in 32.2% of the internal repos it looked at. We scan your history for them and remove what we find before anything ships. Change any key that still works, because no scan catches everything.

  • We never ask for passwords. Your own team runs a read‑only export, and we guide it.
  • Labs see your company name, but personal details are removed and labs are barred by contract from identifying anyone.
  • You can remove anything before a sale.
Read the details on ownership, open source and client code
  • GitHub's Terms of Service say: "You own Your Content." That clause is between you and GitHub. It does not settle who owns code that contractors, clients or open source authors wrote.
  • US copyright law says a transfer of copyright must be in writing and signed by the owner (17 U.S.C. 204). If a contractor or agency wrote some of your code, check what your contract with them says about who owns it.
  • Black Duck's 2026 report looked at 947 commercial codebases. It found open source license conflicts in 68% of them. Open source and copied libraries can stay out, and you choose. Some open source licenses set terms on how code may be shared.
  • If you hold personal information for clients, laws and contracts may limit how you use it. For example, California's rules for service providers (11 CCR 7050) limit use to set purposes. EU and UK data protection law, and your client contracts, can add limits. Customer data in test files and logs stays out.
  • Commits, reviews and issues name your staff. If your team includes people in the EU, the UK or India, privacy laws such as GDPR or India's DPDP Act may apply to those names and emails. We remove personal details before anything ships.
  • Code under ITAR or EAR export control, which can include some encryption code, needs a check before anything moves. We do that check with you, and controlled repos can stay out.

Read how to license safely, how de‑identification works and sell source code to AI, which covers who owns contractor code.

Check this with your own lawyer.

How many repos and pull requests do we have?

Your organization or group page shows the repo count. One search gives the pull request total.

  1. Count repos.On GitHub, open your organization, then Repositories. On GitLab, open the group and read the project count.
  2. Count pull requests.On GitHub, type org:yourname is:pr in the search box, with your organization's name in place of yourname, and read the total. On GitLab, open the group's Merge requests, then All.
  3. Find the first year.Sort repos by date created, or check the first commit of the oldest one.
  4. Note your CI.Write down if you use GitHub Actions, GitLab CI/CD or another tool.

The estimate only asks your headcount and years of records. Bring rough pull request counts to the 20-minute call (under 1,000, 1,000 to 10,000, or more). "Not sure" is fine.

How do I export a GitHub organization with pull requests and issues?

An organization owner starts a migration archive through GitHub's API and downloads it within seven days. Wikis and large files need their own clone.

  1. Make a token.The organization owner makes a token with repo and admin:org access. You can switch it off when you are done.
  2. Start the archive.Call GitHub's organization migrations API with the repos to include. Leave repo locking off if the team is still working, so they can keep pushing code.
  3. Wait for "exported".The status moves from pending to exporting to exported.
  4. Download within 7 days.GitHub deletes the archive after seven days. Keep it under 20 GB, or split it by repo.
  5. Clone wikis and large files.Each wiki is its own repo. Run git lfs fetch --all to get large files such as images and test data.
  6. Export Projects.Each Projects view downloads as a .tsv file from View options.

Check a test export

GitHub calls what the archive holds "selected metadata". Open a small test archive first. Check that your pull requests and review comments are there.

Read what GitHub's own move tool leaves behind
Left behindWhy it matters
Actions run history, artifacts and secretsThe record of which tests passed or failed.
Large files (Git LFS)Images, models and test data kept outside normal history.
Projects and DiscussionsPlanning boards and team talk.
Sub-issuesHow big work was split up.
Edit history of commentsHow a review changed over time.
Links between pull requests and issues across reposWhich change fixed which bug.
Code scanning and Dependabot alertsSecurity findings.
Audit logsWho changed settings.

What GitHub Enterprise Importer does not move.

GitHub Docs, About migrations between GitHub products, checked 20 Nov 2026.

GitHub's API allows 5,000 requests an hour for a normal token, and up to 15,000 for an Enterprise Cloud organization. A company with tens of thousands of pull requests takes hours or days to fetch. Our connectors run the fetch slowly, within those limits, so your team's own work is not blocked.

Jira keys in branch names tie this export to your tickets. See export Jira and Confluence data.

How do I export GitLab projects and groups?

On GitLab.com, a Maintainer or Owner exports each project from its settings. On self‑managed GitLab, the admin's backup already holds nearly everything.

  1. Open settings.Open the project, then Settings, General, and expand Advanced.
  2. Export.Choose Export project. GitLab emails you when the file is ready.
  3. Download at once.GitLab removes export files about every 24 hours.
KeptLeft out
Issues with commentsCI job logs and artifacts
Merge requests with diffs, comments, reviewers and approversLinks between issues and related merge requests
Wiki and large filesCI/CD variables
Labels, milestones, boards, releasesPackage and container registries
Archived pipelinesWebhooks and deploy keys

What a GitLab project export keeps.

GitLab Docs, Migrate projects and groups by using file exports, checked 20 Nov 2026.

GitLab's own advice

GitLab says project export files should not be used as a backup. We pull the links and CI logs through the API with your admin.

Read more on groups and self‑managed GitLab
  • Group file export was replaced by direct transfer. It copies a group with its projects, epics, boards and milestones.
  • GitLab says not all group and project resources are copied by direct transfer.
  • On self‑managed GitLab, sudo gitlab-backup create saves the database, repos, large files, wikis, uploads, CI job logs and artifacts.
  • Back up gitlab-secrets.json and gitlab.rb on their own. The secrets file is needed to read values in the database.
  • GitLab.com allows 6 exports a minute per user, and import files up to 5 GB.

How do I keep CI logs and GitHub Actions history?

Raise retention now. GitHub keeps Actions logs 90 days by default, and raising it later does not bring old runs back.

  • On GitHub, an organization owner opens Settings, Actions, General. Raise log and artifact retention. Private repos go up to 400 days.
  • From 1 Oct 2026, GitHub's workflow runs, checks and statuses follow the same setting. Pass or fail marks on old pull requests may be gone, and raising the setting now does not bring them back.
  • On GitLab.com, job logs are left out of project exports. Pull them through the API while they exist.
  • On self‑managed GitLab, the backup already holds job logs and artifacts.

If old test runs are gone, you still have the workflow files and tests in git. Buyers such as Troveo say they want tests and CI setup.

What must I do before cancelling GitHub or GitLab?

Export and check everything while the plan is live. Downgrade instead of deleting, because a deleted GitHub organization cannot be restored.

  1. Keep an owner account.Keep one GitHub organization owner or GitLab group Owner account active until the end.
  2. Raise Actions retention now.Old runs cannot be brought back later.
  3. Run each export.Download each file inside its window: 7 days on GitHub, about 24 hours on GitLab.
  4. Check what came through.Open the files. Look for pull requests, review comments, wikis and large files.
  5. Pull the rest through the API.Links between records and CI logs are not in the export files.
  6. Downgrade last.Downgrading to GitHub Free ends the paid plan and keeps your content. Do not delete the organization.
What happensHow long
GitHub organization deletedNever restored. The 90-day hold covers the name only.
GitHub downgraded to Free, or organization archivedContent kept. Archiving makes it read‑only.
GitHub repo deletedCan be restored for 90 days, with limits.
GitHub migration archiveDeleted after 7 days.
GitHub Actions logs90 days by default.

Time limits to know on GitHub.

GitHub Docs and GitLab Docs, checked 20 Nov 2026.

Read the GitLab time limits
What happensHow long
GitLab project deletedHeld 30 days. An Owner can restore it. "Delete permanently" takes effect at once.
GitLab paid plan expiresPaid features stop at once. You can renew for 15 days after (14 if auto-renewal failed).
GitLab Free private group with more than 5 usersTurns read‑only.
GitLab project export fileRemoved in about 24 hours.

Time limits to know on GitLab.

GitLab Docs, checked 20 Nov 2026.

Read this if you are selling, closing or have a loan

If you are selling the company, winding down or have a loan, your code may already be promised to a buyer, a lender or a liquidator. Check who can sign before you license it.

Closing down? Read selling records from a closed company, startups winding down and selling your business.

Check this with your own lawyer.

How do I keep pull requests linked to issues and Jira?

Export code, issues and your ticket tool from the same dates, and keep issue numbers and Jira keys as they are. A bug linked to its fix and its test is worth more than loose code.

  1. Issue #1407Refunds sent twice after a webhook retry.
  2. Branch PAY-3147Jira key in the branch name.
  3. PR #5120Changes requested, then approved.
  4. CI passedNew test fails before, passes after.
  5. Release v4.12Fix shipped with release notes.
Example
Read the checklist for keeping links
GitHubPR #5120, Fix duplicate refund on retry
Author
name
Branch
PAY‑3147-idempotency-key
Closes
#1407
Review
name: Changes requested. Retry still skips the key check.
Then
name: Approved
CI
ci / test failed, then passed
Merged
2024‑03‑14
Example
  • Keep "Fixes #1407" and Jira keys in commit messages and pull request titles.
  • Export repos, issues and Jira from the same dates.
  • Do not squash or rewrite history before the export.
  • Flag bot pull requests from Dependabot or Renovate, so they can be left out.
  • Note each export's date and scope.
  • Export Slack and the help desk in the same window if you can.

Other exports: Notion, Google Workspace and Microsoft 365.

On value: sell project records to AI, sell support tickets to AI, and pages for software companies, IT services and agencies.

Next, export Jira and Confluence, Slack and Zendesk.

What happens after I start the estimate?

You see a range in about two minutes, with no email needed. Then a 20-minute call, booked inside the estimate.

  1. 1Estimate
  2. 220-minute call, NDA if you want one
  3. 3Agreement
  4. 4Read-only export with your team
  5. 5Clean and approve a sample
  6. 6Paid when a lab pays

You never share a password. If no lab wants the data, you have paid nothing.

Read more: how to sell company data to AI, license vs sell and what labs buy.

Common questions

Does a git clone include pull requests and issues?

No. A clone holds the code, branches, tags and every commit. Pull requests, reviews, issues and CI logs live in GitHub's or GitLab's own database, and wikis and large files are copied on their own.

How long does GitHub keep Actions logs?

90 days by default, and up to 400 days for private repos. From 1 Oct 2026, workflow runs and checks follow the same setting. Raising it does not bring old runs back, so raise it now.

What happens if I delete our GitHub organization?

GitHub says it cannot restore the content, and the 90-day hold covers only the name. Downgrade to GitHub Free or archive the organization instead. Export first.

What happens to our GitLab data if we stop paying?

Paid features stop when the plan expires, and the free features keep working. You can renew for 15 days after. A Free private group with more than 5 users turns read‑only, so run your exports before the plan ends.

Do I need to export everything before I find out what it is worth?

No. Start the estimate and see a range with no email. We check with a lab that it wants the data before we ask you for a full export. There are no fees and nothing upfront, so a no costs you nothing.

What about secrets in our git history?

We scan the history, issues and comments for passwords, keys and tokens, and remove what we find before anything ships. You check a cleaned sample. Change any key that still works, because no scan catches everything.

Will our clients or staff know?

Personal details are removed before anything ships, and client code built under contract stays out. Labs are barred by contract from identifying anyone. You can sign a mutual NDA before you share any detail.

Will a lab learn our product and help a competitor?

You choose which repos go in, so your pricing logic and newest product code can stay out. What a lab learns is how engineers handle ordinary problems, from many companies. Read sell source code to AI for more.

Who buys GitHub and GitLab history for AI?

AI developers license it, through us and through firms such as Troveo and Turing. Work Data Lab is a New York company that buys company work records, removes personal details and licenses them to AI labs. Read who buys company data.

Doesn't GitHub or GitLab already use our code for AI?

GitLab's docs say it does not train generative AI models. The Register reported that from 24 Apr 2026, GitHub may train on Copilot chats from Free, Pro and Pro+ plans unless users opt out. Licensing your history yourself means you choose what goes in, and you are paid.

Is Work Data Lab legit?

Work Data Lab is a New York company. More than 100 companies sell their data with us, and we have paid $10M to partner companies. There are no fees, and you can write to hello@workdatalab.com or read our facts.

Sources (30)

Figures about Work Data Lab come from our own records. Third-party figures link to their source and the date we checked it. Nothing on this page is legal or tax advice.

See your range in about a minute.

Two or three quick questions. No email needed to see it. Then a 20-minute call if you want to go further.

Start my estimate