The Engineering Desk
From the makers of RS-1

DesignSoftware Engineering

Version control for engineering teams

Replace final_v2_USE_THIS with a history of who changed what, when and why.

Engineering teams often manage scripts, test programs, PLC code and calculation spreadsheets through file names: final, final_v2, final_v2_USE_THIS. Version control replaces that with a complete, searchable history of who changed what, when and why. Git is the most widely used tool, and the core workflow takes an afternoon to learn.

What belongs in Git

Git works best with text files, because it can show exactly which lines changed:

  • Analysis scripts (Python, R, MATLAB), CNC post-processors and macros
  • Embedded firmware and PLC programs exported as text
  • Configuration files, test limits and inspection programs
  • Documentation written in Markdown or similar formats

Large binary files such as native CAD models can be stored too, but Git can't show meaningful differences between versions, and large histories become slow. Use Git LFS (Large File Storage) for those, or a PDM system built for CAD, and keep the text-based work in plain Git.

The everyday cycle

  1. Pull the latest version from the shared repository.
  2. Branch for a change: git switch -c fix-limit-calc.
  3. Edit and commit small, logical steps with clear messages: git commit -m "Use within-subgroup sigma for Cpk".
  4. Push the branch and open a pull request so a colleague can review it.
  5. Merge into the main branch after review and tests pass.

Each commit is a snapshot you can return to. If a change to a calculation script shifts every control limit, git log and git diff show exactly which line did it.

Write commit messages for an auditor

In regulated industries, the history is a quality record. A good message states what changed and why: "Correct d2 constant for n = 6 (was 2.704, now 2.534)". Messages like "updates" are useless six months later.

Tags and releases

Tag the exact version used for a production release or a customer report: git tag v1.4-PPAP-2026-11. Anyone can later check out that tag and reproduce the result.

What not to commit

  • Passwords, API keys and license files. Use environment variables or a secrets manager.
  • Generated output such as compiled binaries and exported reports. List them in .gitignore.
  • Customer data, unless your data-handling rules allow it.

More in Software Engineering