thecodingidiot.com

f02-version-control

Version Control

Perfect Dark, 2025

Rare shipped Perfect Dark[1] for the Nintendo 64 in 2000. The source code stayed inside the company. When Microsoft acquired Rare in 2002, it stayed inside Microsoft. Nobody released it. Nobody was going to.

Perfect Dark — North American box art

In September 2019, Ryan Dwyer made the first commit to a repository called perfect-dark[2]. He did not have the source code. He had the cartridge, a disassembler, and git.

Five years, six months, and 6,779 commits later, he was done. Not approximately done — exactly done. When compiled with the same compiler Rare used in 2000, the output matches the retail cartridge byte for byte.

The chapter ends with you cloning that repository and reading that history yourself.

The implementation pages open with the patch format that underlies every git commit, then build a complete workflow from the ground up: first commit, first branch, first merge conflict, first remote push. The final page is the payoff — you clone perfect-dark and read five years of work, commit by commit. Start at Setup.

Implementation

Setup

Begin Implementation
  1. 0Setup
  2. 1The Patch
  3. 2Your First Commit
  4. 3Branches
  5. 4Remotes
  6. 5Perfect Dark

Footnotes

  1. Perfect Dark - Wikipedia

  2. Ryan Dwyer / Perfect Dark · GitLab